summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/clanrecv.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/clanrecv.cpp b/src/net/eathena/clanrecv.cpp
index 1eebb1581..a46cf4f57 100644
--- a/src/net/eathena/clanrecv.cpp
+++ b/src/net/eathena/clanrecv.cpp
@@ -34,6 +34,10 @@
#include "utils/checkutils.h"
#include "utils/delete2.h"
+#include "resources/claninfo.h"
+
+#include "resources/db/clandb.h"
+
#include "debug.h"
namespace EAthena
@@ -58,6 +62,16 @@ void ClanRecv::processClanInfo(Net::MessageIn &msg)
localClan.antagonistClans.push_back(
msg.readString(24, "antagonist clan name"));
}
+ const ClanInfo *const info = ClanDb::get(localClan.id);
+ if (info == nullptr)
+ {
+ reportAlways("missing clan %d in clandb",
+ localClan.id);
+ }
+ else
+ {
+ localClan.stats = info->stats;
+ }
createTab();
}