Fixed memory leak when using loadnpc or reloadnpcfile command (#5667)
Fixes #5649
This commit is contained in:
@@ -581,6 +581,7 @@ int npc_event_doall_path( const char* event_name, const char* path ){
|
||||
|
||||
ShowStatus( "Event '" CL_WHITE "%s" CL_RESET "' executed with '" CL_WHITE "%d" CL_RESET "' NPCs.\n", event_name, count );
|
||||
|
||||
mapit_free(iter);
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user