diff options
author | leak <none@none> | 2010-12-06 04:52:33 +0100 |
---|---|---|
committer | leak <none@none> | 2010-12-06 04:52:33 +0100 |
commit | 59d12e3b4af92e397da0c01bc3368bc9e408f606 (patch) | |
tree | 58efd30a1e333ebf2d9fe74ed20b78375a13a76e /src | |
parent | 72d8b18c5ca55ed75e685734d6667c181e95ad98 (diff) |
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
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/GameObject/GameObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index dc85d618993..5a6411491f9 100755 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -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; } |