summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-07-26 07:43:20 +0000
committerpeter1138 <peter1138@openttd.org>2008-07-26 07:43:20 +0000
commit65d1fb3a9095bd8210e0faae46e6d5c4207930e8 (patch)
treed7f42ea040aec03b9dc5e69e02a063fe17e9ec09
parentabea03fb896c14375491f94cfecc9c909c39d5d7 (diff)
downloadopenttd-65d1fb3a9095bd8210e0faae46e6d5c4207930e8.tar.xz
(svn r13831) -Codechange: Make purchase list order NewGRF property an extended byte.
-rw-r--r--src/newgrf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 16ebf16b2..8f7a2b1e2 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -584,7 +584,7 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
} break;
case 0x1A: // Alter purchase list sort order
- AlterVehicleListOrder(e->index, grf_load_byte(&buf));
+ AlterVehicleListOrder(e->index, grf_load_extended(&buf));
break;
case 0x1B: // Powered wagons power bonus
@@ -793,7 +793,7 @@ static bool RoadVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
break;
case 0x20: // Alter purchase list sort order
- AlterVehicleListOrder(e->index, grf_load_byte(&buf));
+ AlterVehicleListOrder(e->index, grf_load_extended(&buf));
break;
default:
@@ -904,7 +904,7 @@ static bool ShipVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
break;
case 0x1B: // Alter purchase list sort order
- AlterVehicleListOrder(e->index, grf_load_byte(&buf));
+ AlterVehicleListOrder(e->index, grf_load_extended(&buf));
break;
default:
@@ -1013,7 +1013,7 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
break;
case 0x1B: // Alter purchase list sort order
- AlterVehicleListOrder(e->index, grf_load_byte(&buf));
+ AlterVehicleListOrder(e->index, grf_load_extended(&buf));
break;
default: