summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-10 17:05:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-10 17:07:05 +0300
commit5829747a48294da0cd3af4a60ab6aedc471b07a3 (patch)
treef12067f416d86fc7a9e9a18e4bcd9c085becdb54 /src
parent412e377b6e0eb28ad01712808773d0c7effb8676 (diff)
downloadhercules-5829747a48294da0cd3af4a60ab6aedc471b07a3.tar.gz
hercules-5829747a48294da0cd3af4a60ab6aedc471b07a3.tar.bz2
hercules-5829747a48294da0cd3af4a60ab6aedc471b07a3.tar.xz
hercules-5829747a48294da0cd3af4a60ab6aedc471b07a3.zip
Fix guild 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 5776db4bc..b731ec2e8 100644
--- a/src/map/guild.c
+++ b/src/map/guild.c
@@ -1115,7 +1115,7 @@ int guild_position_changed(int guild_id,int idx,struct guild_position *p)
struct guild *g=guild->search(guild_id);
int i;
nullpo_ret(p);
- Assert_ret(idx > 0 && idx < MAX_GUILD);
+ Assert_ret(idx >= 0 && idx < MAX_GUILD);
if(g==NULL)
return 0;
memcpy(&g->position[idx],p,sizeof(struct guild_position));