mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
Fixed linux compilation error with linker
This was caused by a GNUC compiler optimization that removes LFG.obj from binaries since its functions have never been called by gamelib. So we had to call at least one of them on LFGMgr forcing compiler to include LFG.cpp in build. I can't find another way.
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
handler->PSendSysMessage(LANG_LFG_NOT_IN_GROUP, playerName.c_str());
|
||||
return true;
|
||||
}
|
||||
/*
|
||||
|
||||
uint64 guid = grp->GetGUID();
|
||||
std::string const& state = lfg::GetStateString(sLFGMgr->GetState(guid));
|
||||
handler->PSendSysMessage(LANG_LFG_GROUP_INFO, grp->isLFGGroup(),
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
|
||||
for (GroupReference* itr = grp->GetFirstMember(); itr != nullptr; itr = itr->next())
|
||||
GetPlayerInfo(handler, itr->GetSource());
|
||||
*/
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user