summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 7809af616..e03d81cbf 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -74,7 +74,7 @@ Engine::Engine() :
Engine::Engine(VehicleType type, EngineID base)
{
this->type = type;
- this->internal_id = base;
+ this->grf_prop.local_id = base;
this->list_position = base;
/* Check if this base engine is within the original engine data range */
@@ -241,7 +241,7 @@ Money Engine::GetRunningCost() const
default: NOT_REACHED();
}
- return GetPrice(base_price, cost_factor, this->grffile, -8);
+ return GetPrice(base_price, cost_factor, this->grf_prop.grffile, -8);
}
/**
@@ -281,7 +281,7 @@ Money Engine::GetCost() const
default: NOT_REACHED();
}
- return GetPrice(base_price, cost_factor, this->grffile, -8);
+ return GetPrice(base_price, cost_factor, this->grf_prop.grffile, -8);
}
/**