diff --git a/include/game/game_handler.hpp b/include/game/game_handler.hpp index 720e3f7a..b4ab02d5 100644 --- a/include/game/game_handler.hpp +++ b/include/game/game_handler.hpp @@ -1253,8 +1253,8 @@ public: bool isInGroup() const { return !partyData.isEmpty(); } const GroupListData& getPartyData() const { return partyData; } const std::vector& getContacts() const { return contacts_; } - bool hasPendingGroupInvite() const { return pendingGroupInvite; } - const std::string& getPendingInviterName() const { return pendingInviterName; } + bool hasPendingGroupInvite() const; + const std::string& getPendingInviterName() const; // ---- Item text (books / readable items) ---- bool isItemTextOpen() const; diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 7396de7d..6b2f6f8c 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -9766,6 +9766,14 @@ bool GameHandler::isInGuild() const { return ch && ch->hasGuild(); } +bool GameHandler::hasPendingGroupInvite() const { + return socialHandler_ ? socialHandler_->hasPendingGroupInvite() : pendingGroupInvite; +} +const std::string& GameHandler::getPendingInviterName() const { + if (socialHandler_) return socialHandler_->getPendingInviterName(); + return pendingInviterName; +} + const std::string& GameHandler::getGuildName() const { if (socialHandler_) return socialHandler_->getGuildName(); static const std::string empty;