summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-05 15:39:22 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-05 15:39:22 +0000
commit0c4e3b83e40c334201d1f1873af79f132852fd0a (patch)
tree658c76c4837adf5c3277e65025e9fc14fa20eb73 /src/newgrf.cpp
parentf02cf9281bbbfd0118269dd8431263e2f95005a1 (diff)
downloadopenttd-0c4e3b83e40c334201d1f1873af79f132852fd0a.tar.xz
(svn r11761) -Codechange: Use appropriate variable types for NewGRF engine overrides, and adjust scope while there.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 1032a9747..fa531f5ed 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2772,8 +2772,8 @@ static CargoID TranslateCargo(uint8 feature, uint8 ctype)
static void VehicleMapSpriteGroup(byte *buf, byte feature, uint8 idcount, uint8 cidcount, bool wagover)
{
- static byte *last_engines;
- static int last_engines_count;
+ static EngineID *last_engines;
+ static uint last_engines_count;
if (!wagover) {
if (last_engines_count != idcount) {