mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Codechange: enum-class-ify Commands
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ struct EnginePreviewWindow : Window {
|
||||
switch (widget) {
|
||||
case WID_EP_YES:
|
||||
if (this->selected_index < this->engines.size()) {
|
||||
Command<CMD_WANT_ENGINE_PREVIEW>::Post(this->engines[this->selected_index]);
|
||||
Command<Commands::WantEnginePreview>::Post(this->engines[this->selected_index]);
|
||||
}
|
||||
[[fallthrough]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user