1
0
Fork 0

Codefix: checking unsigned int >= 0 is pointless, check before subtraction

pull/14116/head
Rubidium 2025-04-26 16:34:24 +02:00 committed by rubidium42
parent ce2155ab27
commit 3235ec4cf8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**