[SD2] Add const descriptor to GetSingleCreatureFromStorage method
This commit is contained in:
parent
d81c9be6fc
commit
753eb4536f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user