Core/Entities: Fixed a crash by accessing the GameObjectAI of a GameObject before the next Update cycle. Patch by Rat. Thanks to Visagalis for testing.

Fixes issue 4863

--HG--
branch : trunk
This commit is contained in:
leak
2010-12-06 04:52:33 +01:00
parent 72d8b18c5c
commit 59d12e3b4a

View File

@@ -246,8 +246,8 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa
SetGoAnimProgress(animprogress);
break;
}
LastUsedScriptID = GetGOInfo()->ScriptId;
AIM_Initialize();
return true;
}