[SD2] Add const descriptor to GetSingleCreatureFromStorage method

This commit is contained in:
stormrage-project 2015-09-07 14:40:56 +02:00 committed by Antz
parent d81c9be6fc
commit 753eb4536f
2 changed files with 3 additions and 3 deletions

View File

@ -222,9 +222,9 @@ GameObject* ScriptedInstance::GetSingleGameObjectFromStorage(uint32 uiEntry)
}
/// Returns a pointer to a loaded Creature that was stored in m_mGoEntryGuidStore. Can return NULL
Creature* ScriptedInstance::GetSingleCreatureFromStorage(uint32 uiEntry, bool bSkipDebugLog /*=false*/)
Creature* ScriptedInstance::GetSingleCreatureFromStorage(uint32 uiEntry, bool bSkipDebugLog /*=false*/) const
{
EntryGuidMap::iterator find = m_mNpcEntryGuidStore.find(uiEntry);
EntryGuidMap::const_iterator find = m_mNpcEntryGuidStore.find(uiEntry);
if (find != m_mNpcEntryGuidStore.end())
{
return instance->GetCreature(find->second);

View File

@ -52,7 +52,7 @@ class ScriptedInstance : public InstanceData
// Default accessor functions
GameObject* GetSingleGameObjectFromStorage(uint32 uiEntry);
Creature* GetSingleCreatureFromStorage(uint32 uiEntry, bool bSkipDebugLog = false);
Creature* GetSingleCreatureFromStorage(uint32 uiEntry, bool bSkipDebugLog = false) const;
// Change active state of doors or buttons
void DoUseDoorOrButton(ObjectGuid guid, uint32 uiWithRestoreTime = 0, bool bUseAlternativeState = false);