Fixed missing curly braces in reloadscript
Fixes #3330 Thanks to @hendra814
This commit is contained in:
parent
a942853d55
commit
123303ef84
@ -4432,12 +4432,10 @@ int npc_reload(void) {
|
|||||||
}
|
}
|
||||||
mapit_free(iter);
|
mapit_free(iter);
|
||||||
|
|
||||||
if(battle_config.dynamic_mobs)
|
// dynamic check by [random]
|
||||||
{// dynamic check by [random]
|
if( battle_config.dynamic_mobs ){
|
||||||
int16 m;
|
for( int16 m = 0; m < map.size(); m++ ){
|
||||||
for (m = 0; m < map.size(); m++) {
|
for( int16 i = 0; i < MAX_MOB_LIST_PER_MAP; i++ ){
|
||||||
int16 i;
|
|
||||||
for (i = 0; i < MAX_MOB_LIST_PER_MAP; i++) {
|
|
||||||
if (map[m].moblist[i] != NULL) {
|
if (map[m].moblist[i] != NULL) {
|
||||||
aFree(map[m].moblist[i]);
|
aFree(map[m].moblist[i]);
|
||||||
map[m].moblist[i] = NULL;
|
map[m].moblist[i] = NULL;
|
||||||
@ -4447,11 +4445,13 @@ int npc_reload(void) {
|
|||||||
delete_timer(map[m].mob_delete_timer, map_removemobs_timer);
|
delete_timer(map[m].mob_delete_timer, map_removemobs_timer);
|
||||||
map[m].mob_delete_timer = INVALID_TIMER;
|
map[m].mob_delete_timer = INVALID_TIMER;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
if( map[m].npc_num > 0 ){
|
||||||
if (map[m].npc_num > 0)
|
|
||||||
ShowWarning( "npc_reload: %d npcs weren't removed at map %s!\n", map[m].npc_num, map[m].name );
|
ShowWarning( "npc_reload: %d npcs weren't removed at map %s!\n", map[m].npc_num, map[m].name );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// clear mob spawn lookup index
|
// clear mob spawn lookup index
|
||||||
mob_clear_spawninfo();
|
mob_clear_spawninfo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user