diff --git a/src/C4Object.cpp b/src/C4Object.cpp index 55689e00b..082933d55 100644 --- a/src/C4Object.cpp +++ b/src/C4Object.cpp @@ -233,12 +233,9 @@ C4Object::~C4Object() #ifndef NDEBUG // debug: mustn't be listed in any list now - for (const auto §ion : Game.Sections) - { - assert(!section->Objects.ObjectNumber(this)); - assert(!section->Objects.InactiveObjects.ObjectNumber(this)); - section->Objects.Sectors.AssertObjectNotInList(this); - } + assert(!Section->Objects.ObjectNumber(this)); + assert(!Section->Objects.InactiveObjects.ObjectNumber(this)); + Section->Objects.Sectors.AssertObjectNotInList(this); #endif }