Skip to content

Conversation

@Aingar
Copy link
Collaborator

@Aingar Aingar commented Nov 25, 2023

MobileDock: Fix /jettisonship handling
MunitionCntl: Fix fetched CGuided objects not being released
BountyScan: Add /bs shorthand command

MobileDock: Fix /jettisonship handling
MunitionCntl: Fix fetched CGuided objects not being released
BountyScan: Add /bs shorthand command
{
const auto& projectile = reinterpret_cast<CGuided*>(CObject::Find(createGuidedPacket.iProjectileId, CObject::CGUIDED_OBJECT));
CGuided* projectile = reinterpret_cast<CGuided*>(CObject::Find(createGuidedPacket.iProjectileId, CObject::CGUIDED_OBJECT));
projectile->Release();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be after we call set_target to ensure we're not about to try to interact with free'd memory?

Copy link
Member

@dsyalex dsyalex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants