summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 09:46:35 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 09:46:35 +0000
commit9ded493ba82983942244317f6c29b0d38c0bcd1d (patch)
treee5f6173ed5c8850b05d8cbc9e513ae314603a929
parentc2a903c8ad865c94875fd3aaffae1647afc2ba8d (diff)
downloadhercules-9ded493ba82983942244317f6c29b0d38c0bcd1d.tar.gz
hercules-9ded493ba82983942244317f6c29b0d38c0bcd1d.tar.bz2
hercules-9ded493ba82983942244317f6c29b0d38c0bcd1d.tar.xz
hercules-9ded493ba82983942244317f6c29b0d38c0bcd1d.zip
Changed atoi to strtoul for guild-experience's field
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8090 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/char_sql/int_guild.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 8ce57b3ec..9139dce6e 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,7 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/08/03
+ * Changed atoi to strtoul for guild-experience's field [Toms]
* Fixed a bug in int_storage.c, temp array doesn't have the good size [Toms]
2006/08/02
* Modified yet again SC_SILENCE after iRO tests from Entwined on IRC.
diff --git a/src/char_sql/int_guild.c b/src/char_sql/int_guild.c
index dea17c3f4..2d2c871f9 100644
--- a/src/char_sql/int_guild.c
+++ b/src/char_sql/int_guild.c
@@ -463,7 +463,7 @@ struct guild * inter_guild_fromsql(int guild_id)
m->gender=atoi(sql_row[5]);
m->class_=atoi(sql_row[6]);
m->lv=atoi(sql_row[7]);
- m->exp=atoi(sql_row[8]);
+ m->exp=strtoul(sql_row[8],NULL,10);
m->exp_payper=atoi(sql_row[9]);
m->online=atoi(sql_row[10]);
m->position = atoi(sql_row[11]);