From dafdf74ec517fb83252ba0f4d4df87c2faf0f2e8 Mon Sep 17 00:00:00 2001 From: ArduinoidIOT <40311259+ArduinoidIOT@users.noreply.github.com> Date: Wed, 25 May 2022 09:01:48 +0530 Subject: [PATCH] found another one --- VTIL-Common/util/detached_queue.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VTIL-Common/util/detached_queue.hpp b/VTIL-Common/util/detached_queue.hpp index 1f46dd2..cc22af0 100644 --- a/VTIL-Common/util/detached_queue.hpp +++ b/VTIL-Common/util/detached_queue.hpp @@ -146,7 +146,7 @@ namespace vtil k->prev = nullptr; k->next = head; - if ( head ) head->prev = k; + if ( head && head != key::invalid_value) head->prev = k; if ( !tail ) tail = k; head = k; list_size++;