summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-21 21:19:59 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-09-21 21:19:59 +0000
commite904419c7b3ff59c4d035bcbe48a79f27c74d18d (patch)
treee121ffb549be7f06f416f8b0815cdee37b7c29bb /src/char_sql/char.c
parent5703b27d8c6e7775a165fe29d35020c701b4f286 (diff)
downloadhercules-e904419c7b3ff59c4d035bcbe48a79f27c74d18d.tar.gz
hercules-e904419c7b3ff59c4d035bcbe48a79f27c74d18d.tar.bz2
hercules-e904419c7b3ff59c4d035bcbe48a79f27c74d18d.tar.xz
hercules-e904419c7b3ff59c4d035bcbe48a79f27c74d18d.zip
* Fixed a typo in the status-change saving code (wrong variable used)
* Fixed a case of bad sql code conversion breaking homun skill loading git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11264 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index e13744754..b493028b8 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2733,7 +2733,7 @@ int parse_frommap(int fd)
for( i = 0; i < count; ++i )
{
memcpy (&data, RFIFOP(fd, 14+i*sizeof(struct status_change_data)), sizeof(struct status_change_data));
- if( count > 0 )
+ if( i > 0 )
StringBuf_AppendStr(&buf, ", ");
StringBuf_Printf(&buf, "('%d','%d','%hu','%d','%d','%d','%d','%d')", aid, cid,
data.type, data.tick, data.val1, data.val2, data.val3, data.val4);