mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11124] Avoid save in DB instance/respawn data for BGs/Arenas.
* Fixed bug with not unloaded InstanceSave for BGs/ArenasPartly. This bug introduced with recent InstanceSave creating for all maps. * Avoid save respawn data to DB for BGs/Arenas. No reason save to DB because BGs/Arenas reset at map unload. * Always create InstanceSave for Map without recheck suggested data integrity. Map::GetInstanceSave expected always return != NULL value.
This commit is contained in:
parent
6cfa64db97
commit
01178b69e5
7 changed files with 33 additions and 78 deletions
|
|
@ -95,7 +95,7 @@ Map::Map(uint32 id, time_t expiry, uint32 InstanceId, uint8 SpawnMode)
|
|||
//add reference for TerrainData object
|
||||
m_TerrainData->AddRef();
|
||||
|
||||
m_instanceSave = sInstanceSaveMgr.AddInstanceSave(GetId(), GetInstanceId(), GetDifficulty(), 0, Instanceable());
|
||||
m_instanceSave = sInstanceSaveMgr.AddInstanceSave(i_mapEntry, GetInstanceId(), GetDifficulty(), 0, IsDungeon());
|
||||
m_instanceSave->SetUsedByMapState(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue