diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2015-04-03 12:36:35 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2015-04-03 12:36:35 +0800 |
commit | 281823a0faa46d6060e6a16fb953b61caf2193ed (patch) | |
tree | bd34466435b40c3496843bc479ec31a04161886c | |
parent | 60844f655aaa7adb735674d51bb3a83b90c8c6db (diff) | |
parent | 1843ef171a5457a427af0b4922829272358b81a1 (diff) | |
download | hercules-281823a0faa46d6060e6a16fb953b61caf2193ed.tar.gz hercules-281823a0faa46d6060e6a16fb953b61caf2193ed.tar.bz2 hercules-281823a0faa46d6060e6a16fb953b61caf2193ed.tar.xz hercules-281823a0faa46d6060e6a16fb953b61caf2193ed.zip |
Merge pull request #481 from 4144/fixsql
Fix reading character from db.
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index e43ebbfbc..83bb36a34 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1206,7 +1206,7 @@ int char_mmo_char_fromsql(int char_id, struct mmo_charstatus* p, bool load_every SQL->StmtFree(stmt); return 0; } - if( SQL_ERROR == SQL->StmtNextRow(stmt) ) + if (SQL_SUCCESS != SQL->StmtNextRow(stmt)) { ShowError("Requested non-existant character id: %d!\n", char_id); SQL->StmtFree(stmt); |