From 0802cd1cff5fd11114fe59845fc482405cd36dbf Mon Sep 17 00:00:00 2001 From: Tim Felgentreff <timfelgentreff@gmail.com> Date: Sun, 6 Mar 2022 14:36:45 +0100 Subject: [PATCH] fixed another assert problem when game is cleaning up --- src/unit/unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit/unit.cpp b/src/unit/unit.cpp index 21cedacae..8ea4ad100 100644 --- a/src/unit/unit.cpp +++ b/src/unit/unit.cpp @@ -537,7 +537,7 @@ void CUnit::Release(bool final) } } - Assert(!Refs); + Assert(!GameCycle || !Refs); // it's fine to have remaining refs if we're no longer in the game // // No more references remaining, but the network could have an order