fix (Core/Creature): Random Gender on respawn if Gender exsist for Entry (#10108)

* Fix (Core\Creature): Random Gender on respawn if Gender exsrespawn

If creature has genders it will consider gender changing on respawn.
GetCreatureModelInfo to const

* Update Creature.cpp
This commit is contained in:
acidmanifesto
2022-01-10 16:22:04 +01:00
committed by GitHub
parent c1ebda66ba
commit 3cbe23865f
3 changed files with 11 additions and 11 deletions

View File

@@ -1545,7 +1545,7 @@ void ObjectMgr::LoadCreatureMovementOverrides()
LOG_INFO("server.loading", ">> Loaded " SZFMTD " movement overrides in %u ms", _creatureMovementOverrides.size(), GetMSTimeDiffToNow(oldMSTime));
}
CreatureModelInfo const* ObjectMgr::GetCreatureModelInfo(uint32 modelId)
CreatureModelInfo const* ObjectMgr::GetCreatureModelInfo(uint32 modelId) const
{
CreatureModelContainer::const_iterator itr = _creatureModelStore.find(modelId);
if (itr != _creatureModelStore.end())