diff options
author | Shauren <shauren.trinity@gmail.com> | 2015-05-16 12:12:47 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2015-05-16 12:12:47 +0200 |
commit | b4d044aa13b06ae50b4e468d6647bd7a9eb1cc3e (patch) | |
tree | ea7d02da10a8a1f1dc08a4e10cd57fb99e310887 /src | |
parent | 554e657ab69a20b271cc7d0cc8ed57902ad362ac (diff) |
Core/Commands: Fixed .gobject add command
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Commands/cs_gobject.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index ef52f6ebd95..1af687aef08 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -168,6 +168,8 @@ public: // fill the gameobject data and save to the db object->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), player->GetPhaseMask()); + guidLow = object->GetSpawnId(); + // delete the old object and do a clean load from DB with a fresh new GameObject instance. // this is required to avoid weird behavior and memory leaks delete object; |