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:
@@ -102,6 +102,7 @@ typedef Opcodes OpcodesList;
|
|||||||
#define eObjectMgr (sObjectMgr)
|
#define eObjectMgr (sObjectMgr)
|
||||||
#define eAccountMgr (sAccountMgr)
|
#define eAccountMgr (sAccountMgr)
|
||||||
#define eAuctionMgr (sAuctionMgr)
|
#define eAuctionMgr (sAuctionMgr)
|
||||||
|
#define eGameEventMgr (sGameEventMgr)
|
||||||
#define eObjectAccessor() ObjectAccessor::
|
#define eObjectAccessor() ObjectAccessor::
|
||||||
#define REGEN_TIME_FULL
|
#define REGEN_TIME_FULL
|
||||||
|
|
||||||
|
|||||||
@@ -2896,13 +2896,13 @@ namespace LuaPlayer
|
|||||||
|
|
||||||
#ifdef TRINITY
|
#ifdef TRINITY
|
||||||
// check item starting quest (it can work incorrectly if added without item in inventory)
|
// check item starting quest (it can work incorrectly if added without item in inventory)
|
||||||
ItemTemplateContainer const* itc = sObjectMgr->GetItemTemplateStore();
|
ItemTemplateContainer const& itc = sObjectMgr->GetItemTemplateStore();
|
||||||
ItemTemplateContainer::const_iterator result = std::find_if(itc->begin(), itc->end(), [quest](ItemTemplateContainer::value_type const& value)
|
auto itr = std::find_if(std::begin(itc), std::end(itc), [quest](ItemTemplateContainer::value_type const& value)
|
||||||
{
|
{
|
||||||
return value.second.StartQuest == quest->GetQuestId();
|
return value.second.StartQuest == quest->GetQuestId();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result != itc->end())
|
if (itr != std::end(itc))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// ok, normal (creature/GO starting) quest
|
// ok, normal (creature/GO starting) quest
|
||||||
|
|||||||
Reference in New Issue
Block a user