From b777f2bd5c34b4f2c05a0bbdcdde2dda7109052c Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Mon, 8 Jun 2020 20:23:03 -0700 Subject: [PATCH] Changing Theater now works. --- REDALERT/MAPEDDLG.CPP | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/REDALERT/MAPEDDLG.CPP b/REDALERT/MAPEDDLG.CPP index 0316d41..5877ab8 100644 --- a/REDALERT/MAPEDDLG.CPP +++ b/REDALERT/MAPEDDLG.CPP @@ -1830,6 +1830,8 @@ int MapEditClass::Scenario_Dialog(void) //smarties.Add_Tail(*commands); //desc.Add_Tail(*commands); + TheaterType orig_theater = Scen.Theater; + /* ** Main Processing Loop */ @@ -2120,8 +2122,7 @@ int MapEditClass::Scenario_Dialog(void) ** theater; if not compatible, set TType to TEMPLATE_NONE & TIcon to 0 ** - Then, re-initialize the TypeClasses for the new Theater */ - TheaterType theater = TheaterType(theaterbtn.Current_Index()); - TheaterType orig_theater = Scen.Theater; + TheaterType theater = Scen.Theater; if (theater != orig_theater) { unsigned char theater_mask; // template/terrain mask