diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2017-09-19 10:40:27 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2017-09-19 10:40:27 +0200 |
commit | 9975fb5923f70a85e53f8ec9c7ef2ff26dda03f7 (patch) | |
tree | f950d498412d44b2776246e67b1c1ad1025c6052 /src/scripts/Commands/cs_lfg.cpp | |
parent | af6fc3d873e46d15a53f02417d20089710a95d45 (diff) |
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.
Diffstat (limited to 'src/scripts/Commands/cs_lfg.cpp')
-rw-r--r-- | src/scripts/Commands/cs_lfg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/Commands/cs_lfg.cpp b/src/scripts/Commands/cs_lfg.cpp index 88b2d72573..b491c45b3a 100644 --- a/src/scripts/Commands/cs_lfg.cpp +++ b/src/scripts/Commands/cs_lfg.cpp @@ -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; } |