mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix TC build
This commit is contained in:
@@ -2896,13 +2896,13 @@ namespace LuaPlayer
|
||||
|
||||
#ifdef TRINITY
|
||||
// check item starting quest (it can work incorrectly if added without item in inventory)
|
||||
ItemTemplateContainer const* itc = sObjectMgr->GetItemTemplateStore();
|
||||
ItemTemplateContainer::const_iterator result = std::find_if(itc->begin(), itc->end(), [quest](ItemTemplateContainer::value_type const& value)
|
||||
ItemTemplateContainer const& itc = sObjectMgr->GetItemTemplateStore();
|
||||
auto itr = std::find_if(std::begin(itc), std::end(itc), [quest](ItemTemplateContainer::value_type const& value)
|
||||
{
|
||||
return value.second.StartQuest == quest->GetQuestId();
|
||||
});
|
||||
|
||||
if (result != itc->end())
|
||||
if (itr != std::end(itc))
|
||||
return 0;
|
||||
|
||||
// ok, normal (creature/GO starting) quest
|
||||
|
||||
Reference in New Issue
Block a user