Changeset - r19637:4dcae3cb1f19
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-10-01 19:43:10
frosch@openttd.org
(svn r24568) -Codechange: No need to resort the group GUI when toggling the autoreplace protection. (Juanjo)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/group_cmd.cpp
Show inline comments
 
@@ -562,7 +562,7 @@ CommandCost CmdSetGroupReplaceProtection
 
	if (flags & DC_EXEC) {
 
		g->replace_protection = HasBit(p2, 0);
 

	
 
		InvalidateWindowData(GetWindowClassForVehicleType(g->vehicle_type), VehicleListIdentifier(VL_GROUP_LIST, g->vehicle_type, _current_company).Pack());
 
		SetWindowDirty(GetWindowClassForVehicleType(g->vehicle_type), VehicleListIdentifier(VL_GROUP_LIST, g->vehicle_type, _current_company).Pack());
 
		InvalidateWindowData(WC_REPLACE_VEHICLE, g->vehicle_type);
 
	}
 

	
0 comments (0 inline, 0 general)