Update ObjectMgr.h

This commit is contained in:
Alvin Zhu
2023-01-07 15:16:13 +08:00
committed by GitHub
parent 88a356d2cd
commit 50e19cdabd

View File

@@ -1265,11 +1265,17 @@ public:
{
uint32 typeIndex;
if (type == TYPEID_UNIT)
{
typeIndex = 0;
}
else if (type == TYPEID_GAMEOBJECT)
{
typeIndex = 1;
}
else
{
return nullptr;
}
QuestGreetingLocaleContainer::const_iterator itr = _questGreetingLocaleStore.find(MAKE_PAIR32(typeIndex, id));
if (itr == _questGreetingLocaleStore.end()) return nullptr;