diff options
author | HoraK-FDF <horak-fdf@web.de> | 2022-10-23 15:45:32 +0000 |
---|---|---|
committer | Jesusalva Jesusalva <jesusalva@themanaworld.org> | 2022-10-23 15:45:32 +0000 |
commit | 5cdf930c6596b778db40138726163b9dfd68ae4f (patch) | |
tree | 14495e785cfdcb3d8678a6edeeab9438a5f3af2e /src/char/inter.cpp | |
parent | 45b741f89800d7aad76ed0831416a8e7571886d1 (diff) | |
download | tmwa-5cdf930c6596b778db40138726163b9dfd68ae4f.tar.gz tmwa-5cdf930c6596b778db40138726163b9dfd68ae4f.tar.bz2 tmwa-5cdf930c6596b778db40138726163b9dfd68ae4f.tar.xz tmwa-5cdf930c6596b778db40138726163b9dfd68ae4f.zip |
Added get all reg2, get single reg2, set/add reg2 and del reg2 to tmwa-admin. Fixed communication from char server to login server. Added translations and comments. Minor QoL.
Diffstat (limited to 'src/char/inter.cpp')
-rw-r--r-- | src/char/inter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/inter.cpp b/src/char/inter.cpp index 3bf3bfc..3f2d1aa 100644 --- a/src/char/inter.cpp +++ b/src/char/inter.cpp @@ -68,7 +68,7 @@ namespace char_ static AString inter_accreg_tostr(struct accreg *reg) { - assert(reg->reg_num < ACCOUNT_REG_NUM); + assert(reg->reg_num <= ACCOUNT_REG_NUM); MString str; str += STRPRINTF("%d\t"_fmt, reg->account_id); for (int j = 0; j < reg->reg_num; j++) @@ -236,7 +236,7 @@ void mapif_account_reg_reply(Session *s, AccountId account_id) OMATCH_BEGIN_SOME (reg, reg_) { repeat_04.resize(reg->reg_num); - assert (reg->reg_num < ACCOUNT_REG_NUM); + assert (reg->reg_num <= ACCOUNT_REG_NUM); for (size_t j = 0; j < reg->reg_num; ++j) { repeat_04[j].name = reg->reg[j].str; |