Fix incorrect assert of LinkGraph LastCompression date

This commit is contained in:
Jonathan G Rennison 2024-02-20 23:21:56 +00:00
parent 69ae516353
commit ff0d212705

View File

@ -4555,7 +4555,7 @@ void DeleteStaleLinks(Station *from)
return result;
});
assert(_state_ticks >= lg->LastCompression());
assert(_scaled_tick_counter >= lg->LastCompression());
if ((_scaled_tick_counter - lg->LastCompression()) > LinkGraph::COMPRESSION_INTERVAL) {
lg->Compress();
}