diff options
| author | jackpoz <giacomopoz@gmail.com> | 2014-03-21 22:47:58 +0100 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2014-03-21 22:47:58 +0100 |
| commit | 9e99db035f554c8f4954e025f599ef752c1f4e01 (patch) | |
| tree | aec13f53cd17c7fc3435d6cce35cef29a2eddfeb /src/server/game/DungeonFinding | |
| parent | ada0598bb0be0545353ff0e5ed8823b7eb78f66b (diff) | |
Core/Misc: Fix some static analysis issues
Add some asserts and additional NULL checks as sanity checks.
Diffstat (limited to 'src/server/game/DungeonFinding')
| -rw-r--r-- | src/server/game/DungeonFinding/LFGMgr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 822ae904ef1..8131be9fa45 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -968,6 +968,7 @@ void LFGMgr::MakeNewGroup(LfgProposal const& proposal) player->CastSpell(player, LFG_SPELL_DUNGEON_COOLDOWN, false); } + ASSERT(grp); grp->SetDungeonDifficulty(Difficulty(dungeon->difficulty)); uint64 gguid = grp->GetGUID(); SetDungeon(gguid, dungeon->Entry()); |
