summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index ad749d5f9..d53d6b8f2 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -1267,6 +1267,8 @@ int intif_parse_GuildMemberInfoChanged(int fd)
if( g==NULL )
return 0;
idx=guild_getindex(g,account_id,char_id);
+ if (idx == -1)
+ return 0;
switch(type){
case GMI_POSITION:
g->member[idx].position=dd;