diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-31 13:19:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-01 18:32:19 +0300 |
commit | 1843ef171a5457a427af0b4922829272358b81a1 (patch) | |
tree | bd34466435b40c3496843bc479ec31a04161886c /src/char | |
parent | 60844f655aaa7adb735674d51bb3a83b90c8c6db (diff) | |
download | hercules-1843ef171a5457a427af0b4922829272358b81a1.tar.gz hercules-1843ef171a5457a427af0b4922829272358b81a1.tar.bz2 hercules-1843ef171a5457a427af0b4922829272358b81a1.tar.xz hercules-1843ef171a5457a427af0b4922829272358b81a1.zip |
Fix reading character from db.
Diffstat (limited to 'src/char')
-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); |