[Guilds] Clean up GUILD_RANK_NONE references (#4059)

Should be exhaustive for guild rank values
Cleans up redefinition of `GUILD_RANK_NONE` by including `GUILD_RANK_NONE_TI`
Fixes #4057
This commit is contained in:
JJ
2024-02-11 11:58:19 -05:00
committed by GitHub
parent a27a8adf1e
commit 3e6924d10e
6 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -881,7 +881,7 @@ static void ProcessGuildMember(MySQLRequestRow row, CharGuildInfo &into)
if (into.guild_id == 0) {
into.guild_id = GUILD_NONE;
}
if (into.rank > GUILD_MAX_RANK) {
if (into.rank > GUILD_MAX_RANK + 1) {
into.rank = GUILD_RANK_NONE;
}
}