diff options
author | trojal <trojal@gmail.com> | 2013-02-04 05:41:10 -0800 |
---|---|---|
committer | trojal <trojal@gmail.com> | 2013-02-04 05:41:10 -0800 |
commit | 36de442965e31129560401ea3a0d81f9ecb6a2da (patch) | |
tree | ff8a3f3236ae7d449ef343d77d07f01084417fcc /src | |
parent | 524291493e64196d8ce02f4b637ea0ee1a176d0a (diff) | |
parent | 7e4c57861434f07dcba240db541e1f90cfebe694 (diff) | |
download | hercules-36de442965e31129560401ea3a0d81f9ecb6a2da.tar.gz hercules-36de442965e31129560401ea3a0d81f9ecb6a2da.tar.bz2 hercules-36de442965e31129560401ea3a0d81f9ecb6a2da.tar.xz hercules-36de442965e31129560401ea3a0d81f9ecb6a2da.zip |
Merge pull request #7 from akrus/master
Getting rid of unneeded indexes & allowing uint for guild exp values
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; } |