summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-02-25 14:33:43 +0000
committerpeter1138 <peter1138@openttd.org>2007-02-25 14:33:43 +0000
commit8df0b8a685f3c79daad4a3d8c045c2b7abd367e4 (patch)
tree052c3e0f94dec43434a3e66935c00b7d3ac9d1a5 /src
parente981e0a55318659a06bfeff60e09ad720c2bed8d (diff)
downloadopenttd-8df0b8a685f3c79daad4a3d8c045c2b7abd367e4.tar.xz
(svn r8903) -Regression (r8891): CT_PURCHASE does apply to aircraft overrides...
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index b54251e93..16bbb87da 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -44,7 +44,7 @@ void SetWagonOverrideSprites(EngineID engine, CargoID cargo, const SpriteGroup *
WagonOverride *wo;
assert(engine < TOTAL_NUM_ENGINES);
- assert(cargo < NUM_CARGO + 1); // Include CT_DEFAULT pseudo cargo. CT_PURCHASE does not apply to overrides.
+ assert(cargo < NUM_CARGO + 2); // Include CT_DEFAULT and CT_PURCHASE pseudo cargos.
wos = &_engine_wagon_overrides[engine];
wos->overrides_count++;