Changed atoi to strtoul for guild-experience's field

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8090 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
toms 2006-08-03 09:46:35 +00:00
parent c831b74d87
commit 5511cb9ea3
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. 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. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/08/03 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] * Fixed a bug in int_storage.c, temp array doesn't have the good size [Toms]
2006/08/02 2006/08/02
* Modified yet again SC_SILENCE after iRO tests from Entwined on IRC. * Modified yet again SC_SILENCE after iRO tests from Entwined on IRC.

View File

@ -463,7 +463,7 @@ struct guild * inter_guild_fromsql(int guild_id)
m->gender=atoi(sql_row[5]); m->gender=atoi(sql_row[5]);
m->class_=atoi(sql_row[6]); m->class_=atoi(sql_row[6]);
m->lv=atoi(sql_row[7]); 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->exp_payper=atoi(sql_row[9]);
m->online=atoi(sql_row[10]); m->online=atoi(sql_row[10]);
m->position = atoi(sql_row[11]); m->position = atoi(sql_row[11]);