@@ -115,7 +115,7 @@ bool CFREDDoc::autoload() {
115115 }
116116
117117 // Load Backup.002
118- r = load_mission (name);
118+ r = load_mission (name, MPF_FAST_RELOAD );
119119 Update_window = 1 ;
120120
121121 // Delete Backup.001
@@ -227,7 +227,7 @@ bool CFREDDoc::load_mission(const char *pathname, int flags) {
227227 // activate the localizer hash table
228228 fhash_flush ();
229229
230- clear_mission ();
230+ clear_mission (flags & MPF_FAST_RELOAD );
231231
232232 // message 1: required version
233233 if (!parse_main (pathname, flags)) {
@@ -457,7 +457,7 @@ void CFREDDoc::OnFileImportFSM() {
457457 if (Briefing_dialog)
458458 Briefing_dialog->icon_select (-1 );
459459
460- clear_mission ();
460+ clear_mission (true );
461461
462462 int num_files = 0 ;
463463 int successes = 0 ;
@@ -490,7 +490,7 @@ void CFREDDoc::OnFileImportFSM() {
490490 strcpy_s (fs1_path, fs1_path_mfc);
491491
492492 // load mission into memory
493- if (!load_mission (fs1_path, MPF_IMPORT_FSM))
493+ if (!load_mission (fs1_path, MPF_IMPORT_FSM | MPF_FAST_RELOAD ))
494494 continue ;
495495
496496 // get filename
@@ -652,7 +652,7 @@ BOOL CFREDDoc::OnSaveDocument(LPCTSTR pathname) {
652652 }
653653
654654 SetModifiedFlag (FALSE );
655- if (!load_mission (pathname))
655+ if (!load_mission (pathname, MPF_FAST_RELOAD ))
656656 Error (LOCATION, " Failed attempting to reload mission after saving. Report this bug now!" );
657657
658658 if (Briefing_dialog) {
0 commit comments