diff options
author | Haru <haru@dotalux.com> | 2018-02-07 03:56:01 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-02-10 01:23:15 +0100 |
commit | ba28b56a6b3180c7d13c196ecb44fddd3d63a4f6 (patch) | |
tree | f049fca67c4490950a86de3d3675384b3f142f57 /src/char | |
parent | 6f85e399942facc69555d078c82588f95b198711 (diff) | |
download | hercules-ba28b56a6b3180c7d13c196ecb44fddd3d63a4f6.tar.gz hercules-ba28b56a6b3180c7d13c196ecb44fddd3d63a4f6.tar.bz2 hercules-ba28b56a6b3180c7d13c196ecb44fddd3d63a4f6.tar.xz hercules-ba28b56a6b3180c7d13c196ecb44fddd3d63a4f6.zip |
Fix some minor issues in the clan system, as reported by coverity
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/int_clan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/char/int_clan.c b/src/char/int_clan.c index 76a9639c5..c75f8f6e1 100644 --- a/src/char/int_clan.c +++ b/src/char/int_clan.c @@ -55,11 +55,11 @@ int inter_clan_kick_inactive_members(int clan_id, int kick_interval) { if (clan_id <= 0) { ShowError("inter_clan_kick_inactive_members: Invalid clan id received '%d'\n", clan_id); - Assert_retr(0, 0); + Assert_report(clan_id > 0); return 0; } else if (kick_interval <= 0) { ShowError("inter_clan_kick_inactive_members: Invalid kick_interval received '%d'", kick_interval); - Assert_retr(0, 0); + Assert_report(kick_interval > 0); return 0; } @@ -88,11 +88,11 @@ int inter_clan_count_members(int clan_id, int kick_interval) if (clan_id <= 0) { ShowError("inter_clan_count_members: Invalid clan id received '%d'\n", clan_id); - Assert_retr(0, 0); + Assert_report(clan_id > 0); return 0; } else if (kick_interval <= 0) { ShowError("inter_clan_count_member: Invalid kick_interval received '%d'", kick_interval); - Assert_retr(0, 0); + Assert_report(kick_interval > 0); return 0; } |