fix(Core): GUID of GameObject (#6001)
This commit is contained in:
@@ -148,6 +148,7 @@ public:
|
|||||||
|
|
||||||
// fill the gameobject data and save to the db
|
// fill the gameobject data and save to the db
|
||||||
object->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), player->GetPhaseMaskForSpawn());
|
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.
|
// 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
|
// this is required to avoid weird behavior and memory leaks
|
||||||
delete object;
|
delete object;
|
||||||
|
|||||||
Reference in New Issue
Block a user