Skip to content

Commit

Permalink
Clear the PagedEntityContainer<DROID> in objmemShutdown()
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 19, 2024
1 parent de6a149 commit e815827
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/objmem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ bool objmemInitialise()
/* Release the object heaps */
void objmemShutdown()
{
auto& droidContainer = GlobalDroidContainer();
droidContainer.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.
Expand Down

0 comments on commit e815827

Please sign in to comment.