mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 15:02:06 +01:00
Codefix: checking unsigned int >= 0 is pointless, check before subtraction
This commit is contained in:
@@ -268,8 +268,8 @@ bool RoadStop::Enter(RoadVehicle *rv)
|
||||
*/
|
||||
void RoadStop::Entry::Leave(const RoadVehicle *rv)
|
||||
{
|
||||
assert(this->occupied >= rv->gcache.cached_total_length);
|
||||
this->occupied -= rv->gcache.cached_total_length;
|
||||
assert(this->occupied >= 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user