summaryrefslogtreecommitdiff
path: root/src/newgrf_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r--src/newgrf_engine.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index d05130ee9..bf64c95f8 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -850,12 +850,7 @@ static const SpriteGroup *GetVehicleSpriteGroup(EngineID engine, const Vehicle *
const Engine *e = GetEngine(engine);
- /* Engines are not available, when their cargo is not available.
- * But that does not apply to articulated parts. */
- if (cargo == CT_INVALID) cargo = CT_DEFAULT;
-
assert(cargo < lengthof(e->group));
-
group = e->group[cargo];
if (group != NULL) return group;