Changeset - r1234:5ce95e7feae2
[Not reviewed]
master
0 1 0
celestar - 20 years ago 2005-01-30 18:40:52
celestar@openttd.org
(svn r1738) -Fix: [ 1108735 ] Fixed (hopefully) an assertion that was cause by selling carriages in a MP game faster than the network can handle. (Truelight)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -870,13 +870,13 @@ int32 CmdSellRailWagon(int x, int y, uin
 
	int32 cost;
 

	
 
	SET_EXPENSES_TYPE(EXPENSES_NEW_VEHICLES);
 

	
 
	v = GetVehicle(p1);
 

	
 
	if (!CheckOwnership(v->owner))
 
	if (v->type == 0 || !CheckOwnership(v->owner))
 
		return CMD_ERROR;
 

	
 
	// get first vehicle in chain
 
	first = v;
 
	if (first->subtype != TS_Front_Engine) {
 
		first = GetFirstVehicleInChain(first);
0 comments (0 inline, 0 general)