diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-08-14 14:03:53 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-08-14 14:03:53 +0000 |
commit | 174ade9a45988abf053cf45f30775fc6a76e706e (patch) | |
tree | a72ecf639a28e68b9a1affc2a9961cb80be191ed /src/map/npc.c | |
parent | e9f0392e73cdb07067bbd031aeb4bdeff131ae93 (diff) | |
download | hercules-174ade9a45988abf053cf45f30775fc6a76e706e.tar.gz hercules-174ade9a45988abf053cf45f30775fc6a76e706e.tar.bz2 hercules-174ade9a45988abf053cf45f30775fc6a76e706e.tar.xz hercules-174ade9a45988abf053cf45f30775fc6a76e706e.zip |
- 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
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |