summaryrefslogtreecommitdiff
path: root/src/char/int_guild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/int_guild.c')
-rw-r--r--src/char/int_guild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index d8556f023..895cbbb94 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -1437,7 +1437,7 @@ int mapif_parse_GuildBasicInfoChange(int fd, int guild_id, int type, const void
switch(type) {
case GBI_EXP:
value = *((const int16 *)data);
- if( g->exp+value < 0 )
+ if( value < 0 && abs(value) > g->exp )
return 0;
g->exp += value;
guild_calcinfo(g);