diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 0e6d50dbc9..6f755b14b4 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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(); }