summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-13 19:13:36 +0000
committersmatz <smatz@openttd.org>2009-05-13 19:13:36 +0000
commit2bc5189ad5a77fde5b418ac7dd57be290cd98d3f (patch)
tree86b6088d94bc659f12f0f2741256f7e82d7ed50e /src
parent5bffbcdeca986d682534fff3797be694f27733ca (diff)
downloadopenttd-2bc5189ad5a77fde5b418ac7dd57be290cd98d3f.tar.xz
(svn r16299) -Fix (r16242): don't use DoCommandP when the function can be called from another command
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 4e4572815..29bd977ad 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -121,7 +121,7 @@ void ShowNewGrfVehicleError(EngineID engine, StringID part1, StringID part2, GRF
SetDParamStr(0, grfconfig->name);
SetDParam(1, engine);
ShowErrorMessage(part2, part1, 0, 0);
- if (!_networking) DoCommandP(0, critical ? PM_PAUSED_ERROR : PM_PAUSED_NORMAL, 1, CMD_PAUSE);
+ if (!_networking) DoCommand(0, critical ? PM_PAUSED_ERROR : PM_PAUSED_NORMAL, 1, DC_EXEC, CMD_PAUSE);
}
/* debug output */