mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Fixed possible crash and wrong data in instance state save (or not save). Author: zhenya
--HG-- branch : trunk
This commit is contained in:
@@ -163,7 +163,7 @@ void InstanceSave::SaveToDB()
|
||||
// save instance data too
|
||||
std::string data;
|
||||
|
||||
Map *map = MapManager::Instance().FindMap(m_instanceid, GetMapId());
|
||||
Map *map = MapManager::Instance().FindMap(GetMapId(),m_instanceid);
|
||||
if(map)
|
||||
{
|
||||
assert(map->IsDungeon());
|
||||
|
||||
Reference in New Issue
Block a user