Scripts/Commands: Add comment about 9d58410739 changes

This commit is contained in:
jackpoz
2014-04-13 16:02:41 +02:00
parent 9d58410739
commit ba61ec085d

View File

@@ -166,6 +166,8 @@ public:
// fill the gameobject data and save to the db
object->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), player->GetPhaseMaskForSpawn());
// 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;
object = new GameObject();