Core/Instances: fixed saving newly created instance saves

This commit is contained in:
Ovahlord committed 2023-01-15 09:23:26 +01:00
1 parent 68e5567583
commit be0538e405
1 file changed
+1 -1
+1 -1
View File
@@ -2668,7 +2668,7 @@ bool InstanceMap::AddPlayerToMap(Player* player)
if (!mapSave)
{
TC_LOG_DEBUG("maps", "InstanceMap::Add: creating instance save for map %d spawnmode %d with instance id %d", GetId(), GetDifficulty(), GetInstanceId());
mapSave = sInstanceSaveMgr->AddInstanceSave(GetId(), GetInstanceId(), GetDifficulty(), 0, 0, true);
mapSave = sInstanceSaveMgr->AddInstanceSave(GetId(), GetInstanceId(), GetDifficulty(), 0, true);
}
ASSERT(mapSave);