Changeset - r23235:c3023d73b75c
[Not reviewed]
master
0 1 0
Peter Nelson - 6 years ago 2019-01-29 19:15:49
peter1138@openttd.org
Fix 11ab3c4ea2f: Fix showing cargo capacity for auto-refits (missed in #7134)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -689,8 +689,8 @@ struct RefitWindow : public Window {
 
	{
 
		assert(_current_company == _local_company);
 
		Vehicle *v = Vehicle::Get(this->window_number);
 
		CommandCost cost = DoCommand(v->tile, this->selected_vehicle, option->cargo | (int)this->auto_refit << 6 | option->subtype << 8 |
 
				this->num_vehicles << 16, DC_QUERY_COST, GetCmdRefitVeh(v->type));
 
		CommandCost cost = DoCommand(v->tile, this->selected_vehicle, option->cargo | option->subtype << 8 | this->num_vehicles << 16 |
 
				(int)this->auto_refit << 24, DC_QUERY_COST, GetCmdRefitVeh(v->type));
 

	
 
		if (cost.Failed()) return INVALID_STRING_ID;
 

	
0 comments (0 inline, 0 general)