summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorakrus <akrus@flygroup.st>2013-02-04 14:15:27 +0400
committerakrus <akrus@flygroup.st>2013-02-04 14:15:27 +0400
commit7e4c57861434f07dcba240db541e1f90cfebe694 (patch)
treeff8a3f3236ae7d449ef343d77d07f01084417fcc /src/char
parentbb61951098fb71c43d2f606727d43d22c729089f (diff)
downloadhercules-7e4c57861434f07dcba240db541e1f90cfebe694.tar.gz
hercules-7e4c57861434f07dcba240db541e1f90cfebe694.tar.bz2
hercules-7e4c57861434f07dcba240db541e1f90cfebe694.tar.xz
hercules-7e4c57861434f07dcba240db541e1f90cfebe694.zip
Allow unsigned int values for guild exp (as it was before the change).
Diffstat (limited to 'src/char')
-rw-r--r--src/char/int_guild.c4
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;
}