summaryrefslogtreecommitdiff
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
commit7669f63d4efb92dceb4221dd695614688eeb49e8 (patch)
tree052c3e0f94dec43434a3e66935c00b7d3ac9d1a5
parent87226c519a1e79d203ca89060bcf969d28d5913a (diff)
downloadopenttd-7669f63d4efb92dceb4221dd695614688eeb49e8.tar.xz
(svn r8903) -Regression (r8891): CT_PURCHASE does apply to aircraft overrides...
-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++;