summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index e7dc7c2d0..ce32dcc5f 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1864,7 +1864,7 @@ void Vehicle::UpdateVisualEffect(bool allow_power_change)
const Engine *e = Engine::Get(this->engine_type);
if (this->type == VEH_TRAIN) {
- if (e->u.rail.visual_effect != 0) {
+ if (e->u.rail.visual_effect != VE_DEFAULT) {
this->vcache.cached_vis_effect = e->u.rail.visual_effect;
} else {
Train *t = Train::From(this);