Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,12 @@ void OpenContain::monitorConditionChanges( void )
void OpenContain::redeployOccupants( void )
{

// TheSuperHackers @fix xezon 09/06/2025 Prevent repositioning objects during game shutdown.
// During shutdown, objects may be in the process of being destroyed, which can lead to
// use-after-free crashes if we attempt to reposition them.
if( TheGameLogic == nullptr || !TheGameLogic->isInGame() )
return;

//
// because the state has changed, we will must give the deploy logic the opportunity
// to look for a new set of bones in the art ... so if we had them flagged as not
Expand Down Expand Up @@ -1121,6 +1127,12 @@ void OpenContain::redeployOccupants( void )
void OpenContain::putObjAtNextFirePoint( Object *obj )
{

// TheSuperHackers @fix xezon 09/06/2025 Prevent repositioning objects during game shutdown.
// During shutdown, objects may be in the process of being destroyed, which can lead to
// use-after-free crashes if we attempt to reposition them.
if( TheGameLogic == nullptr || !TheGameLogic->isInGame() )
return;

//
// first, if we need to load the 3D point data from the art do so, if we've already
// determined there is no firepoints in the current art we will avoid searching for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,12 @@ void OpenContain::monitorConditionChanges( void )
void OpenContain::redeployOccupants( void )
{

// TheSuperHackers @fix xezon 09/06/2025 Prevent repositioning objects during game shutdown.
// During shutdown, objects may be in the process of being destroyed, which can lead to
// use-after-free crashes if we attempt to reposition them.
if( TheGameLogic == nullptr || !TheGameLogic->isInGame() )
return;

//
// because the state has changed, we will must give the deploy logic the opportunity
// to look for a new set of bones in the art ... so if we had them flagged as not
Expand Down Expand Up @@ -1243,6 +1249,12 @@ void OpenContain::redeployOccupants( void )
void OpenContain::putObjAtNextFirePoint( Object *obj )
{

// TheSuperHackers @fix xezon 09/06/2025 Prevent repositioning objects during game shutdown.
// During shutdown, objects may be in the process of being destroyed, which can lead to
// use-after-free crashes if we attempt to reposition them.
if( TheGameLogic == nullptr || !TheGameLogic->isInGame() )
return;

//
// first, if we need to load the 3D point data from the art do so, if we've already
// determined there is no firepoints in the current art we will avoid searching for
Expand Down
Loading