Changeset - r14978:1098bb0dee82
[Not reviewed]
master
0 1 0
terkhen - 15 years ago 2010-04-10 19:30:38
terkhen@openttd.org
(svn r19599) -Fix [FS#3751]: Vehicles with a weight of zero crashed the game when using realistic acceleration.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ground_vehicle.cpp
Show inline comments
 
@@ -80,7 +80,7 @@ void GroundVehicle<T, Type>::CargoChange
 
	}
 

	
 
	/* Store consist weight in cache. */
 
	this->acc_cache.cached_weight = weight;
 
	this->acc_cache.cached_weight = max<uint32>(1, weight);
 

	
 
	/* Now update vehicle power (tractive effort is dependent on weight). */
 
	this->PowerChanged();
0 comments (0 inline, 0 general)