TBTR: Fix being able to open template replacement window more than once
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user