mirror of https://github.com/OpenTTD/OpenTTD.git
parent
a0d8545f6c
commit
97cfd40649
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue