From 174ade9a45988abf053cf45f30775fc6a76e706e Mon Sep 17 00:00:00 2001 From: zephyrus Date: Fri, 14 Aug 2009 14:03:53 +0000 Subject: - Fixes and optimization to instancing. Thanks to Saithis git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14006 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 3614968c0..3380f2ace 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -3259,6 +3259,9 @@ int npc_reload(void) "\t-'"CL_WHITE"%d"CL_RESET"' Mobs Not Cached\n", npc_id - npc_new_min, npc_warp, npc_shop, npc_script, npc_mob, npc_cache_mob, npc_delay_mob); + for( i = 0; i < ARRAYLENGTH(instance); ++i ) + if( instance[i].instance_id ) instance_init(instance[i].instance_id); + //Re-read the NPC Script Events cache. npc_read_event_script(); -- cgit v1.2.3-70-g09d2