summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/socialwindow.h3
-rw-r--r--src/net/eathena/guildrecv.cpp2
-rw-r--r--src/net/tmwa/guildmanager.cpp6
3 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h
index 2abee7170..394fdf9d6 100644
--- a/src/gui/windows/socialwindow.h
+++ b/src/gui/windows/socialwindow.h
@@ -123,7 +123,8 @@ class SocialWindow final : public Window,
void updateMenu(const SocialTab *const tab,
const std::string &menu);
- void updateGuildCounter(const int online = 0, const int total = 0);
+ void updateGuildCounter(const int online,
+ const int total);
void updatedPlayer(const std::string &name) override final;
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp
index c0be1be01..cf2a5a3dd 100644
--- a/src/net/eathena/guildrecv.cpp
+++ b/src/net/eathena/guildrecv.cpp
@@ -679,7 +679,7 @@ void GuildRecv::processGuildMemberLogin(Net::MessageIn &msg)
if (guildTab != nullptr)
guildTab->showOnline(m->getName(), fromBool(online, Online));
if (socialWindow != nullptr)
- socialWindow->updateGuildCounter();
+ socialWindow->updateGuildCounter(0, 0);
}
}
}
diff --git a/src/net/tmwa/guildmanager.cpp b/src/net/tmwa/guildmanager.cpp
index df73a6c40..2e33e3372 100644
--- a/src/net/tmwa/guildmanager.cpp
+++ b/src/net/tmwa/guildmanager.cpp
@@ -221,7 +221,7 @@ void GuildManager::updateList()
actorManager->updatePlayerColors();
}
if (socialWindow != nullptr)
- socialWindow->updateGuildCounter();
+ socialWindow->updateGuildCounter(0, 0);
}
mTempList.clear();
mSentInfoRequest = false;
@@ -285,7 +285,7 @@ bool GuildManager::process(std::string msg)
if (mTab != nullptr)
mTab->showOnline(msg, Online_false);
if (socialWindow != nullptr)
- socialWindow->updateGuildCounter();
+ socialWindow->updateGuildCounter(0, 0);
return true;
}
else if (!haveNick && findCutLast(msg, " is now Online."))
@@ -305,7 +305,7 @@ bool GuildManager::process(std::string msg)
if (mTab != nullptr)
mTab->showOnline(msg, Online_true);
if (socialWindow != nullptr)
- socialWindow->updateGuildCounter();
+ socialWindow->updateGuildCounter(0, 0);
return true;
}
else if (findCutFirst(msg, "Welcome to the "))