diff options
author | shennetsind <ind@henn.et> | 2013-05-16 16:10:51 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-16 16:10:51 -0300 |
commit | f03d4212e214245ab1b16c8d0ccb8e087f714f23 (patch) | |
tree | 081b48a7431e6e711e5522b64fa4e1e88847264b /src/char/char.c | |
parent | 4424ef2ce2cd65666145a0a0c6ba8d05669f1fb8 (diff) | |
download | hercules-f03d4212e214245ab1b16c8d0ccb8e087f714f23.tar.gz hercules-f03d4212e214245ab1b16c8d0ccb8e087f714f23.tar.bz2 hercules-f03d4212e214245ab1b16c8d0ccb8e087f714f23.tar.xz hercules-f03d4212e214245ab1b16c8d0ccb8e087f714f23.zip |
Fixed Bug #7250
Screwed up.
http://hercules.ws/board/tracker/issue-7250-cant-create-party-and-guild/
Follow up 0aee4fd57f2f4135361f4182a08a98cf52ed9d10
Signed-off-by: shennetsind <ind@henn.et>
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) { |