From 8ac74e475f26f24329129d7cc32088c4af88c862 Mon Sep 17 00:00:00 2001 From: HEBAN Simon <30532637+Miithrandiir@users.noreply.github.com> Date: Sat, 22 May 2021 15:11:41 +0200 Subject: [PATCH] fix(Core): GUID of GameObject (#6001) --- src/server/scripts/Commands/cs_gobject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/scripts/Commands/cs_gobject.cpp b/src/server/scripts/Commands/cs_gobject.cpp index 05b31cdd2..a56f505c5 100644 --- a/src/server/scripts/Commands/cs_gobject.cpp +++ b/src/server/scripts/Commands/cs_gobject.cpp @@ -148,6 +148,7 @@ public: // fill the gameobject data and save to the db object->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), player->GetPhaseMaskForSpawn()); + 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;