summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/articulated_vehicles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp
index ae6b9d5e6..95ec4871a 100644
--- a/src/articulated_vehicles.cpp
+++ b/src/articulated_vehicles.cpp
@@ -14,6 +14,7 @@
#include "roadveh.h"
#include "vehicle_func.h"
#include "engine_func.h"
+#include "company_func.h"
#include "table/strings.h"
#include "table/sprites.h"
@@ -51,6 +52,7 @@ uint CountArticulatedParts(EngineID engine_type, bool purchase_window)
if (!purchase_window) {
v = new Vehicle();
v->engine_type = engine_type;
+ v->owner = _current_company;
}
uint i;