diff options
author | Rat@walamy <none@none> | 2010-05-16 17:45:45 +0200 |
---|---|---|
committer | Rat@walamy <none@none> | 2010-05-16 17:45:45 +0200 |
commit | 9771757c4c9c2210a258e9bf477f06a4981d4794 (patch) | |
tree | df021d18706b254ad1a0969c49686d7f158c2853 /src/game/GameObject.cpp | |
parent | c26399a96804cf4231dd6ec2e6f4e3ec437aac64 (diff) |
you can now reload creatures from creature_template table
NOTE: reload is limited to one creature at a time
Usage: .reload creature_template $entry
Warning: this is mainly for developers, reloading a creature can cause unexpected behaviors!!
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index 5a5b28d85b9..d8d376c0608 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -216,6 +216,8 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map *map, uint32 phaseMa SetZoneScript(); + LastUsedScriptID = GetGOInfo()->ScriptId; + return true; } |