diff options
author | rubidium <rubidium@openttd.org> | 2008-04-05 23:36:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-05 23:36:54 +0000 |
commit | 5b47f81b0f6d46a876a24c0384791af123ac4ab7 (patch) | |
tree | 0ddf9ce628e1f7f3677425777bfeb4f04b23d7a0 /src/oldloader.cpp | |
parent | 56e63a60447beeae0cc541191ea77f06e237b40a (diff) | |
download | openttd-5b47f81b0f6d46a876a24c0384791af123ac4ab7.tar.xz |
(svn r12584) -Codechange: do not access the order type directly.
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r-- | src/oldloader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index 2995733dd..feaae2149 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -345,8 +345,8 @@ static void FixOldVehicles() * (loading) order which causes assertions and the like later on. */ if (!IsPlayerBuildableVehicleType(v) || - (v->IsPrimaryVehicle() && v->current_order.type == OT_NOTHING)) { - v->current_order.type = OT_DUMMY; + (v->IsPrimaryVehicle() && v->current_order.IsType(OT_NOTHING))) { + v->current_order.MakeDummy(); } FOR_ALL_VEHICLES_FROM(u, v->index + 1) { |