mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +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
|
|
@ -3621,7 +3621,7 @@ void ObjectMgr::LoadGroups()
|
|||
diff = REGULAR_DIFFICULTY; // default for both difficaly types
|
||||
}
|
||||
|
||||
InstanceSave *save = sInstanceSaveMgr.AddInstanceSave(mapEntry->MapID, fields[2].GetUInt32(), Difficulty(diff), (time_t)fields[5].GetUInt64(), (fields[6].GetUInt32() == 0), true);
|
||||
InstanceSave *save = sInstanceSaveMgr.AddInstanceSave(mapEntry, fields[2].GetUInt32(), Difficulty(diff), (time_t)fields[5].GetUInt64(), (fields[6].GetUInt32() == 0), true);
|
||||
group->BindToInstance(save, fields[3].GetBool(), true);
|
||||
}while( result->NextRow() );
|
||||
delete result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue