mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core: Fix warning
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user