From 7f6e5c44ff309f0ff04a17e0249631b0acfb4389 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 31 May 2012 17:46:20 +0000 Subject: Fixed bugreport:5804 Instances no longer leave "broken" timers behind. Instances also will destroy themselves upon @reloadscript since they break at that. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16183 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/instance.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/instance.c') diff --git a/src/map/instance.c b/src/map/instance.c index 44b735518..9d0b8246e 100644 --- a/src/map/instance.c +++ b/src/map/instance.c @@ -323,6 +323,9 @@ void instance_del_map(int m) map_removemapdb(&map[m]); memset(&map[m], 0x00, sizeof(map[0])); + + /* for it is default and makes it not try to delete a non-existent timer since we did not delete this entry. */ + map[m].mob_delete_timer = INVALID_TIMER; } /*-------------------------------------- -- cgit v1.2.3-60-g2f50