Core: Fix warning

This commit is contained in:
Vincent-Michael committed 2014-04-28 22:32:01 +02:00
1 parent 08060994a9
commit 4dfe3246fa
2 files changed
+1 -6

No files matched your search

@@ -2171,13 +2171,8 @@ TempSummon* Map::SummonCreature(uint32 entry, Position const& pos, SummonPropert
}
uint32 phase = PHASEMASK_NORMAL;
uint32 team = 0;
if (summoner)
{
phase = summoner->GetPhaseMask();
if (summoner->GetTypeId() == TYPEID_PLAYER)
team = summoner->ToPlayer()->GetTeam();
}
TempSummon* summon = NULL;
switch (mask)