From 5a054da4d93473b9fe2822c6f0adb7c98c23fb02 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 22 Jan 2019 00:32:45 +0100 Subject: [PATCH] - removed incorrect assert. This assert disallowed pointers to non GC'd objects, which on some occasions can happen and must be allowed. --- src/dobjgc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dobjgc.cpp b/src/dobjgc.cpp index 35ecaaf44..8359eba3c 100644 --- a/src/dobjgc.cpp +++ b/src/dobjgc.cpp @@ -255,7 +255,7 @@ void Mark(DObject **obj) { DObject *lobj = *obj; - assert(lobj == nullptr || !(lobj->ObjectFlags & OF_Released)); + //assert(lobj == nullptr || !(lobj->ObjectFlags & OF_Released)); if (lobj != nullptr && !(lobj->ObjectFlags & OF_Released)) { if (lobj->ObjectFlags & OF_EuthanizeMe)