summaryrefslogtreecommitdiff
path: root/src/char_sql/int_guild.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-11 05:30:23 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-11 05:30:23 +0000
commit139975b43ca2e325add8d09a917b36e43716046e (patch)
tree7b3614c55bb4dd553b179b1d65984c69c08256e9 /src/char_sql/int_guild.c
parent73bd6c4490e6e9b5c7284aabd9e08579595abdd8 (diff)
downloadhercules-139975b43ca2e325add8d09a917b36e43716046e.tar.gz
hercules-139975b43ca2e325add8d09a917b36e43716046e.tar.bz2
hercules-139975b43ca2e325add8d09a917b36e43716046e.tar.xz
hercules-139975b43ca2e325add8d09a917b36e43716046e.zip
* [Fixed]
- Compilation warnings on guild.c and int_guild.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7088 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/int_guild.c')
-rw-r--r--src/char_sql/int_guild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/int_guild.c b/src/char_sql/int_guild.c
index 23cb95bb7..4e89dbf93 100644
--- a/src/char_sql/int_guild.c
+++ b/src/char_sql/int_guild.c
@@ -1527,7 +1527,7 @@ int mapif_parse_GuildMemberInfoChange(int fd,int guild_id,int account_id,int cha
{ // EXP
unsigned int exp, old_exp=g->member[i].exp;
g->member[i].exp=*((unsigned int *)data);
- if (g->member[i].exp > old_exp)
+ if (g->member[i].exp > (signed int)old_exp && old_exp < INT_MAX)
{
exp = g->member[i].exp - old_exp;
if (guild_exp_rate != 100)