Skip to content
Merged
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 @@ -755,7 +755,9 @@ void StealthUpdate::changeVisualDisguise()

const ThingTemplate *tTemplate = self->getTemplate();

TheThingFactory->newDrawable( tTemplate );
// TheSuperHackers @fix helmutbuhler 13/04/2025 Fixes missing pointer assignment for the new drawable.
// This originally caused no runtime crash because the new drawable is allocated at the same address as the previously deleted drawable via the MemoryPoolBlob.
draw = TheThingFactory->newDrawable( tTemplate );
if( draw )
{
TheGameLogic->bindObjectAndDrawable(self, draw);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,9 @@ void StealthUpdate::changeVisualDisguise()

const ThingTemplate *tTemplate = self->getTemplate();

TheThingFactory->newDrawable( tTemplate );
// TheSuperHackers @fix helmutbuhler 13/04/2025 Fixes missing pointer assignment for the new drawable.
// This originally caused no runtime crash because the new drawable is allocated at the same address as the previously deleted drawable via the MemoryPoolBlob.
draw = TheThingFactory->newDrawable( tTemplate );
if( draw )
{
TheGameLogic->bindObjectAndDrawable(self, draw);
Expand Down