Changeset - r27076:65ea8be28e55
[Not reviewed]
master
0 1 0
Tyler Trahan - 14 months ago 2023-04-12 18:52:37
tyler@tylertrahan.com
Fix #10630: Don't allow shifting service date earlier than 0 (#10643)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -771,7 +771,7 @@ uint32 Vehicle::GetGRFID() const
 
 */
 
void Vehicle::ShiftDates(int interval)
 
{
 
	this->date_of_last_service += interval;
 
	this->date_of_last_service = std::max(this->date_of_last_service + interval, 0);
 
}
 

	
 
/**
0 comments (0 inline, 0 general)