Core: Fix warning

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

View File

@@ -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)

View File

@@ -249,7 +249,7 @@ class OutdoorPvP : public ZoneScript
void TeamApplyBuff(TeamId team, uint32 spellId, uint32 spellId2 = 0);
static TeamId GetTeamIdByTeam(uint32 team)
{
{
switch (team)
{
case ALLIANCE: