mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-16 17:02:37 +01:00
committed by
Loïc Guilloux
parent
78512af02e
commit
da20e0f6e6
@@ -770,7 +770,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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user