fix(Core/Battlegrounds): log errors about creatures not found (#1587)

This commit is contained in:
Alan
2019-04-07 08:19:45 -03:00
committed by Francesco Borzì
parent 2014610723
commit 3b82a3d903
3 changed files with 11 additions and 14 deletions

View File

@@ -782,7 +782,7 @@ void BattlegroundAV::PopulateNode(BG_AV_Nodes node)
if (node >= BG_AV_NODES_MAX)//fail safe
return;
Creature* trigger = GetBGCreature(node + 302);//0-302 other creatures
Creature* trigger = GetBgMap()->GetCreature(BgCreatures[node + 302]);//0-302 other creatures
if (!trigger)
{
trigger = AddCreature(WORLD_TRIGGER,