Instance map fixes (#3539)

* Fixed #3517, new map from instance doesn't use unused map slots
* Fixed #3528, crashed on reloadscript if there is instance map
* Cleared map flags on reloadscript
This commit is contained in:
Cydh Ramdh
2018-10-10 18:05:24 +07:00
committed by GitHub
parent ed40872839
commit e66dc4f62e
3 changed files with 89 additions and 24 deletions

View File

@@ -4537,6 +4537,7 @@ int npc_reload(void) {
//Execute the OnInit event for freshly loaded npcs. [Skotlex]
npc_event_runall(script_config.init_event_name);
map_data_copyall();
do_reload_instance();
// Execute rest of the startup events if connected to char-server. [Lance]