Changeset - r23724:12c71168f5e6
[Not reviewed]
master
0 1 0
stormcone - 6 years ago 2019-05-10 17:19:07
48624099+stormcone@users.noreply.github.com
Fix #7224: Drag and drop vehicle group creation does not work correctly.

When drag and drop a vehicle into an empty slot in the vehicle group window it tries to create the new group as the subgroup of the first group (GroupID = 0). This is failing if the dragged vehicle's type is different than the first group's vehicle type.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/group_cmd.cpp
Show inline comments
 
@@ -537,7 +537,7 @@ CommandCost CmdAddVehicleGroup(TileIndex
 

	
 
	if (new_g == NEW_GROUP) {
 
		/* Create new group. */
 
		CommandCost ret = CmdCreateGroup(0, flags, v->type, 0, nullptr);
 
		CommandCost ret = CmdCreateGroup(0, flags, v->type, INVALID_GROUP, nullptr);
 
		if (ret.Failed()) return ret;
 

	
 
		new_g = _new_group_id;
0 comments (0 inline, 0 general)