From ff0d2127059d791b9c19619f36e25036b0e8ebf1 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 20 Feb 2024 23:21:56 +0000 Subject: [PATCH] Fix incorrect assert of LinkGraph LastCompression date --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }