summaryrefslogtreecommitdiff
path: root/src/char/int_homun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/int_homun.c')
-rw-r--r--src/char/int_homun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/int_homun.c b/src/char/int_homun.c
index f06ace0b2..6e4f63849 100644
--- a/src/char/int_homun.c
+++ b/src/char/int_homun.c
@@ -104,7 +104,7 @@ bool mapif_homunculus_save(struct s_homunculus* hd)
}
else
{
- hd->hom_id = (int)SQL->NumRows(sql_handle);
+ hd->hom_id = (int)SQL->LastInsertId(sql_handle);
}
}
else