summaryrefslogtreecommitdiff
path: root/src/engine_gui.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-10-03 17:15:48 +0200
committerMichael Lutz <michi@icosahedron.de>2021-12-16 22:28:32 +0100
commit549caca39cebc8c988f4e51d79d353cab4646d58 (patch)
tree6739fb0721fae36d6fc58eabd4be642062386dee /src/engine_gui.cpp
parentb6933a2ebdf66c5fb23b2226d3ce07d71426d7d2 (diff)
downloadopenttd-549caca39cebc8c988f4e51d79d353cab4646d58.tar.xz
Codechange: Move command arguments to the back of the networked command function calls.
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index bc0143be1..6710967f4 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -125,7 +125,7 @@ struct EnginePreviewWindow : Window {
{
switch (widget) {
case WID_EP_YES:
- DoCommandP(0, this->window_number, 0, CMD_WANT_ENGINE_PREVIEW);
+ DoCommandP(CMD_WANT_ENGINE_PREVIEW, 0, this->window_number, 0);
FALLTHROUGH;
case WID_EP_NO:
if (!_shift_pressed) this->Close();