diff options
author | rubidium <rubidium@openttd.org> | 2009-05-13 16:52:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-13 16:52:51 +0000 |
commit | d23f616e9f2a381c6431d8374d52fe13f5ad5052 (patch) | |
tree | 5ac9308cffd265676ddb867b6ad1c101f1f2982b /src/depot_gui.cpp | |
parent | 3d3b5256f027a58cbbc004057659f9e5ec38c284 (diff) | |
download | openttd-d23f616e9f2a381c6431d8374d52fe13f5ad5052.tar.xz |
(svn r16296) -Codechange: silence some ICC warnings
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 3525c1909..d47265987 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -556,7 +556,7 @@ struct DepotWindow : Window { */ void HandleCloneVehClick(const Vehicle *v, const Window *w) { - uint error_str; + StringID error_str; if (v == NULL) return; @@ -567,14 +567,14 @@ struct DepotWindow : Window { } switch (v->type) { - case VEH_TRAIN: error_str = CMD_MSG(STR_ERROR_CAN_T_BUILD_RAILROAD_VEHICLE); break; - case VEH_ROAD: error_str = CMD_MSG(STR_ERROR_CAN_T_BUILD_ROAD_VEHICLE); break; - case VEH_SHIP: error_str = CMD_MSG(STR_ERROR_CAN_T_BUILD_SHIP); break; - case VEH_AIRCRAFT: error_str = CMD_MSG(STR_ERROR_CAN_T_BUILD_AIRCRAFT); break; + case VEH_TRAIN: error_str = STR_ERROR_CAN_T_BUILD_RAILROAD_VEHICLE; break; + case VEH_ROAD: error_str = STR_ERROR_CAN_T_BUILD_ROAD_VEHICLE; break; + case VEH_SHIP: error_str = STR_ERROR_CAN_T_BUILD_SHIP; break; + case VEH_AIRCRAFT: error_str = STR_ERROR_CAN_T_BUILD_AIRCRAFT; break; default: return; } - DoCommandP(this->window_number, v->index, _ctrl_pressed ? 1 : 0, CMD_CLONE_VEHICLE | error_str, CcCloneVehicle); + DoCommandP(this->window_number, v->index, _ctrl_pressed ? 1 : 0, CMD_CLONE_VEHICLE | CMD_MSG(error_str), CcCloneVehicle); ResetObjectToPlace(); } |