summaryrefslogtreecommitdiff
path: root/src/common/db.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-18 10:59:40 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-18 10:59:40 +0000
commitce45058d3c54a4809128c310c8ec72216fa15d94 (patch)
tree14435ea16bdf89f2a877451e743706d8ad8be5e1 /src/common/db.c
parentab859094455fd375d0cb42523b13cf8367315be1 (diff)
downloadhercules-ce45058d3c54a4809128c310c8ec72216fa15d94.tar.gz
hercules-ce45058d3c54a4809128c310c8ec72216fa15d94.tar.bz2
hercules-ce45058d3c54a4809128c310c8ec72216fa15d94.tar.xz
hercules-ce45058d3c54a4809128c310c8ec72216fa15d94.zip
Fixed a bug in the timer code which made it impossible to delete a timer with id '0' (since pre-svn, still present in jAthena).
Fixed wrong order of parameters in a ShowWarning call when freeing a locked DBMap, which caused a segfault when executed (since initial implementation in r4859). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12854 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/db.c')
-rw-r--r--src/common/db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/db.c b/src/common/db.c
index be2714603..6506fb889 100644
--- a/src/common/db.c
+++ b/src/common/db.c
@@ -2052,7 +2052,7 @@ static int db_obj_vdestroy(DBMap* self, DBApply func, va_list args)
if (db->free_lock)
ShowWarning("db_vdestroy: Database is still in use, %u lock(s) left. Continuing database destruction.\n"
"Database allocated at %s:%d\n",
- db->alloc_file, db->alloc_line, db->free_lock);
+ db->free_lock, db->alloc_file, db->alloc_line);
#ifdef DB_ENABLE_STATS
switch (db->type) {