TBTR: Fix being able to open template replacement window more than once

This commit is contained in:
Jonathan G Rennison
2020-09-21 03:27:37 +01:00
parent 09d5be1aad
commit 3f8ce47d32

View File

@@ -809,5 +809,7 @@ public:
void ShowTemplateReplaceWindow() void ShowTemplateReplaceWindow()
{ {
new TemplateReplaceWindow(&_replace_rail_vehicle_desc); if (BringWindowToFrontById(WC_TEMPLATEGUI_MAIN, 0) == nullptr) {
new TemplateReplaceWindow(&_replace_rail_vehicle_desc);
}
} }