mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 20:13:48 +00:00
feat(Core/Misc): change how Position struct is retrieved (#9017)
Update Position::GetPosition() and similar methods signatures to reflect 2a4c9bc changes by return a Position object instead of accepting a Position parameter by reference.
Cherry pick of 2585e799f9
This commit is contained in:
@@ -155,8 +155,7 @@ bool BattlefieldWG::SetupBattlefield()
|
||||
// Spawn turrets and hide them per default
|
||||
for (uint8 i = 0; i < WG_MAX_TURRET; i++)
|
||||
{
|
||||
Position towerCannonPos;
|
||||
WGTurret[i].GetPosition(&towerCannonPos);
|
||||
Position towerCannonPos = WGTurret[i].GetPosition();
|
||||
if (Creature* creature = SpawnCreature(NPC_WINTERGRASP_TOWER_CANNON, towerCannonPos, TEAM_ALLIANCE))
|
||||
{
|
||||
CanonList.insert(creature->GetGUID());
|
||||
|
||||
Reference in New Issue
Block a user