summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-11 18:11:22 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-11 18:11:22 +0300
commit1dc1296f4bb10d4f85931c948edb5ef801920bd9 (patch)
tree595d3b37a7e5db99318bad441c255d362c82cf75 /src
parentbb3afb0340c2046192c6e601b3ea450b68d41d3b (diff)
downloadhercules-1dc1296f4bb10d4f85931c948edb5ef801920bd9.tar.gz
hercules-1dc1296f4bb10d4f85931c948edb5ef801920bd9.tar.bz2
hercules-1dc1296f4bb10d4f85931c948edb5ef801920bd9.tar.xz
hercules-1dc1296f4bb10d4f85931c948edb5ef801920bd9.zip
Fix guild member position check.
Diffstat (limited to 'src')
-rw-r--r--src/map/guild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/guild.c b/src/map/guild.c
index b731ec2e8..0ebfd81e9 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -1081,7 +1081,7 @@ int guild_change_memberposition(int guild_id,int account_id,int char_id,short id
int guild_memberposition_changed(struct guild *g,int idx,int pos)
{
nullpo_ret(g);
- Assert_ret(idx > 0 && idx < MAX_GUILD);
+ Assert_ret(idx >= 0 && idx < MAX_GUILD);
g->member[idx].position=pos;
clif->guild_memberpositionchanged(g,idx);