summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index 32f44b511..055b19ed8 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -32,13 +32,14 @@
#include "gui/widgets/tabs/socialattacktab.h"
#include "gui/widgets/tabs/socialfriendstab.h"
#include "gui/widgets/tabs/socialguildtab.h"
-#include "gui/widgets/tabs/socialguildtab2.h"
#include "gui/widgets/tabs/socialnavigationtab.h"
#include "gui/widgets/tabs/socialpartytab.h"
#include "gui/widgets/tabs/socialpickuptab.h"
#include "gui/widgets/tabs/socialplayerstab.h"
#ifdef TMWA_SUPPORT
+#include "gui/widgets/tabs/socialguildtab2.h"
+
#include "net/tmwa/guildmanager.h"
#endif
@@ -183,11 +184,13 @@ bool SocialWindow::addTab(Guild *const guild)
tab = new SocialGuildTab(this, guild,
getOptionBool("showtabbackground"));
}
+#ifdef TMWA_SUPPORT
else
{
tab = new SocialGuildTab2(this, guild,
getOptionBool("showtabbackground"));
}
+#endif // TMWA_SUPPORT
mGuilds[guild] = tab;
mTabs->addTab(tab, tab->mScroll);