mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix use-after-delete errors
This commit is contained in:
parent
d97d44f66f
commit
c50c88d071
2 changed files with 3 additions and 4 deletions
|
|
@ -3339,6 +3339,6 @@ void ShapeBase::ejectShellCasing( U32 imageSlot )
|
|||
|
||||
if (!casing->registerObject())
|
||||
delete casing;
|
||||
|
||||
casing->init( shellPos, shellVel );
|
||||
else
|
||||
casing->init( shellPos, shellVel );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue