mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Battlefield): Wintergrasp out of bounds error when setting neutral faction of stalker (#21340)
This commit is contained in:
@@ -806,7 +806,10 @@ Creature* Battlefield::SpawnCreature(uint32 entry, float x, float y, float z, fl
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
creature->SetFaction(BattlefieldFactions[teamId]);
|
// no need to set faction for neutral team
|
||||||
|
if (teamId == TEAM_ALLIANCE || teamId == TEAM_HORDE)
|
||||||
|
creature->SetFaction(BattlefieldFactions[teamId]);
|
||||||
|
|
||||||
creature->SetHomePosition(x, y, z, o);
|
creature->SetHomePosition(x, y, z, o);
|
||||||
|
|
||||||
// force using DB speeds -- do we really need this?
|
// force using DB speeds -- do we really need this?
|
||||||
|
|||||||
Reference in New Issue
Block a user