mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[10414] Constantify some functions in InstanceSave.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
1ccf1ccd86
commit
6d5559544b
3 changed files with 14 additions and 14 deletions
|
|
@ -86,7 +86,7 @@ void InstanceSave::SaveToDB()
|
|||
CharacterDatabase.PExecute("INSERT INTO instance VALUES ('%u', '%u', '"UI64FMTD"', '%u', '%s')", m_instanceid, GetMapId(), (uint64)GetResetTimeForDB(), GetDifficulty(), data.c_str());
|
||||
}
|
||||
|
||||
time_t InstanceSave::GetResetTimeForDB()
|
||||
time_t InstanceSave::GetResetTimeForDB() const
|
||||
{
|
||||
// only save the reset time for normal instances
|
||||
const MapEntry *entry = sMapStore.LookupEntry(GetMapId());
|
||||
|
|
@ -97,12 +97,12 @@ time_t InstanceSave::GetResetTimeForDB()
|
|||
}
|
||||
|
||||
// to cache or not to cache, that is the question
|
||||
InstanceTemplate const* InstanceSave::GetTemplate()
|
||||
InstanceTemplate const* InstanceSave::GetTemplate() const
|
||||
{
|
||||
return ObjectMgr::GetInstanceTemplate(m_mapid);
|
||||
}
|
||||
|
||||
MapEntry const* InstanceSave::GetMapEntry()
|
||||
MapEntry const* InstanceSave::GetMapEntry() const
|
||||
{
|
||||
return sMapStore.LookupEntry(m_mapid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue