diff options
author | shennetsind <ind@henn.et> | 2013-02-04 11:44:37 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-02-04 11:44:37 -0200 |
commit | 6ff53b01efdc79762ca691f50859f28fd78dc1d5 (patch) | |
tree | b0ebc6c21d8538569e2632e560323956ea21f43e /src | |
parent | 6854d1526b34c552767bf37d4ff637d47a840549 (diff) | |
parent | 36de442965e31129560401ea3a0d81f9ecb6a2da (diff) | |
download | hercules-6ff53b01efdc79762ca691f50859f28fd78dc1d5.tar.gz hercules-6ff53b01efdc79762ca691f50859f28fd78dc1d5.tar.bz2 hercules-6ff53b01efdc79762ca691f50859f28fd78dc1d5.tar.xz hercules-6ff53b01efdc79762ca691f50859f28fd78dc1d5.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src')
-rw-r--r-- | src/char/int_guild.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c index 9cb17dca8..b3a907b1a 100644 --- a/src/char/int_guild.c +++ b/src/char/int_guild.c @@ -602,9 +602,9 @@ static struct guild_castle* inter_guildcastle_fromsql(int castle_id) // Read exp_guild.txt static bool exp_guild_parse_row(char* split[], int column, int current) { - int exp = atoi(split[0]); + unsigned int exp = atoll(split[0]); - if (exp < 0 || exp >= INT_MAX) { + if (exp < 0 || exp >= UINT_MAX) { ShowError("exp_guild: Invalid exp %d at line %d\n", exp, current); return false; } |