diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/socialwindow.cpp | 7 | ||||
-rw-r--r-- | src/gui/widgets/guildchattab.cpp | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index 789d98b73..ca52ea283 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -1575,9 +1575,14 @@ void SocialWindow::selectPortal(unsigned num) int SocialWindow::getPortalIndex(int x, int y) { if (mNavigation) - return static_cast<SocialNavigationTab*>(mNavigation)->getPortalIndex(x, y); + { + return static_cast<SocialNavigationTab*>( + mNavigation)->getPortalIndex(x, y); + } else + { return -1; + } } void SocialWindow::addPortal(int x, int y) diff --git a/src/gui/widgets/guildchattab.cpp b/src/gui/widgets/guildchattab.cpp index 0d40506dd..0353ac23f 100644 --- a/src/gui/widgets/guildchattab.cpp +++ b/src/gui/widgets/guildchattab.cpp @@ -49,7 +49,8 @@ GuildChatTab::~GuildChatTab() { } -bool GuildChatTab::handleCommand(const std::string &type, const std::string &args) +bool GuildChatTab::handleCommand(const std::string &type, + const std::string &args) { if (type == "help") { |