src/ship_cmd.cpp
changeset 7592 48055c5dd43d
parent 7566 435e3c4dbf28
child 7630 2cd754d7dfa4
equal deleted inserted replaced
7591:824ca6dcf1fb 7592:48055c5dd43d
   892 
   892 
   893 		InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
   893 		InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
   894 		RebuildVehicleLists();
   894 		RebuildVehicleLists();
   895 		InvalidateWindow(WC_COMPANY, v->owner);
   895 		InvalidateWindow(WC_COMPANY, v->owner);
   896 		if (IsLocalPlayer())
   896 		if (IsLocalPlayer())
   897 			InvalidateAutoreplaceWindow(VEH_SHIP); // updates the replace Ship window
   897 			InvalidateAutoreplaceWindow(VEH_SHIP, v->group_id); // updates the replace Ship window
   898 
   898 
   899 		GetPlayer(_current_player)->num_engines[p1]++;
   899 		GetPlayer(_current_player)->num_engines[p1]++;
   900 	}
   900 	}
   901 
   901 
   902 	return value;
   902 	return value;