Changeset - r17298:f10752811f69
[Not reviewed]
master
0 1 0
glx - 14 years ago 2011-02-10 15:58:22
glx@openttd.org
(svn r22048) -Fix (r4495): company 0 does not always exist, so put temporary vehicles in a valid company
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/articulated_vehicles.cpp
Show inline comments
 
@@ -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 engi
 
	if (!purchase_window) {
 
		v = new Vehicle();
 
		v->engine_type = engine_type;
 
		v->owner = _current_company;
 
	}
 

	
 
	uint i;
0 comments (0 inline, 0 general)