From 2bc5189ad5a77fde5b418ac7dd57be290cd98d3f Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 13 May 2009 19:13:36 +0000 Subject: [PATCH] (svn r16299) -Fix (r16242): don't use DoCommandP when the function can be called from another command --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 4e45728159..29bd977adc 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 */