diff options
Diffstat (limited to 'src/char/char.c')
-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 f5a75964c..6e0f5363e 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1588,7 +1588,7 @@ int make_new_char_sql(struct char_session_data* sd, char* name_, int str, int ag } #endif //Retrieve the newly auto-generated char id - char_id = (int)SQL->NumRows(sql_handle); + char_id = (int)SQL->LastInsertId(sql_handle); //Give the char the default items for (k = 0; k < ARRAYLENGTH(start_items) && start_items[k] != 0; k += 2) { |