diff options
author | panikon <panikon@zoho.com> | 2014-05-07 19:41:46 -0300 |
---|---|---|
committer | panikon <panikon@zoho.com> | 2014-05-07 19:41:46 -0300 |
commit | 095c47f5345f63da79495487ca58b7a21800fb6c (patch) | |
tree | cd3cd96f592e26782e9c627c6fb4d20a78077c35 /src/char/int_guild.c | |
parent | acf4079c828a56c5ba761698b425168110d3722f (diff) | |
download | hercules-095c47f5345f63da79495487ca58b7a21800fb6c.tar.gz hercules-095c47f5345f63da79495487ca58b7a21800fb6c.tar.bz2 hercules-095c47f5345f63da79495487ca58b7a21800fb6c.tar.xz hercules-095c47f5345f63da79495487ca58b7a21800fb6c.zip |
Follow up to 9a425c1
Special thanks to @MishimaHaruna
Diffstat (limited to 'src/char/int_guild.c')
-rw-r--r-- | src/char/int_guild.c | 2 |
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); |