diff options
-rw-r--r-- | Changelog-Trunk.txt | 1 | ||||
-rw-r--r-- | src/char_sql/int_guild.c | 2 |
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]);
|