From c71a68278436f2c7d8d2984d7b095e62e48b0bb3 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sun, 24 Mar 2024 15:04:04 -0400 Subject: [PATCH] Clear the PagedEntityContainer in objmemShutdown() --- src/objmem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/objmem.cpp b/src/objmem.cpp index 0a12bb8b345..fc2870b7653 100644 --- a/src/objmem.cpp +++ b/src/objmem.cpp @@ -88,6 +88,8 @@ void objmemShutdown() { auto& droidContainer = GlobalDroidContainer(); droidContainer.clear(); + auto& structContainer = GlobalStructContainer(); + structContainer.clear(); } // Check that psVictim is not referred to by any other object in the game. We can dump out some extra data in debug builds that help track down sources of dangling pointer errors.