summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-25 16:36:13 +0000
committerLupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-25 16:36:13 +0000
commit970ad20d01dccaff33259dc239733753db0018c1 (patch)
tree6212e567357d7e21e5d8512ba9ee31a0b59135d7
parenta06301e47be21176c4b553d7abb3ef5db7f72945 (diff)
downloadhercules-970ad20d01dccaff33259dc239733753db0018c1.tar.gz
hercules-970ad20d01dccaff33259dc239733753db0018c1.tar.bz2
hercules-970ad20d01dccaff33259dc239733753db0018c1.tar.xz
hercules-970ad20d01dccaff33259dc239733753db0018c1.zip
fix of SQL mob_db loading
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1174 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/mob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index bce79d5f8..14d1d9d95 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -4351,7 +4351,7 @@ static int mob_read_sqldb(void)
sql_res = mysql_store_result(&mmysql_handle);
if (sql_res) {
while((sql_row = mysql_fetch_row(sql_res))){
- sprintf(line,"%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s",
+ sprintf(line,"%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s",
sql_row[0],sql_row[1],sql_row[2],sql_row[3],sql_row[4],
sql_row[5],sql_row[6],sql_row[7],sql_row[8],sql_row[9],
sql_row[10],sql_row[11],sql_row[12],sql_row[13],sql_row[14],
@@ -4363,9 +4363,9 @@ static int mob_read_sqldb(void)
sql_row[40],sql_row[41],sql_row[42],sql_row[43],sql_row[44],
sql_row[45],sql_row[46],sql_row[47],sql_row[48],sql_row[49],
sql_row[50],sql_row[51],sql_row[52],sql_row[53],sql_row[54],
- sql_row[55],sql_row[56],sql_row[57],sql_row[58],sql_row[59]);
+ sql_row[55],sql_row[56]);
- for(i=0,p=line;i<60;i++){
+ for(i=0,p=line;i<57;i++){
if((np=strchr(p,','))!=NULL){
str[i]=p;
*np=0;