mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 18:39:10 +00: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