From 5b8f189276b3883253de31d5e7bbbf897d34c85b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Feb 2015 13:13:48 +0300 Subject: Use guildmanager only if build with tmwa support. --- src/actions/chat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/actions') diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index cacafea5b..5014b24bc 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -78,10 +78,12 @@ static void outString(ChatTab *const tab, return; guildHandler->chat(guild->getId(), str); } +#ifdef TMWA_SUPPORT else if (guildManager) { guildManager->chat(str); } +#endif } break; } @@ -369,10 +371,14 @@ impHandler(guild) const Guild *const guild = localPlayer->getGuild(); if (guild) { +#ifdef TMWA_SUPPORT if (guild->getServerGuild()) guildHandler->invite(guild->getId(), args); else if (guildManager) guildManager->invite(args); +#else + guildHandler->invite(guild->getId(), args); +#endif } } else -- cgit v1.2.3-70-g09d2