diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-10 17:05:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-10 17:07:05 +0300 |
commit | 5829747a48294da0cd3af4a60ab6aedc471b07a3 (patch) | |
tree | f12067f416d86fc7a9e9a18e4bcd9c085becdb54 /src | |
parent | 412e377b6e0eb28ad01712808773d0c7effb8676 (diff) | |
download | hercules-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.c | 2 |
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)); |