fix issue #10913
fix GetQuestGreetingLocale typeIndex just like GetQuestGreeting
This commit is contained in:
@@ -1263,7 +1263,15 @@ public:
|
||||
}
|
||||
[[nodiscard]] QuestGreetingLocale const* GetQuestGreetingLocale(TypeID type, uint32 id) const
|
||||
{
|
||||
QuestGreetingLocaleContainer::const_iterator itr = _questGreetingLocaleStore.find(MAKE_PAIR32(type, id));
|
||||
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;
|
||||
return &itr->second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user