mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 21:10:32 +00:00
Fix more use-after-delete errors
This commit is contained in:
parent
c50c88d071
commit
68b5e7b517
3 changed files with 4 additions and 4 deletions
|
|
@ -227,8 +227,8 @@ void RiverNodeEvent::padListToSize()
|
|||
newlist->mDepths.merge(list->mDepths);
|
||||
newlist->mNormals.merge(list->mNormals);
|
||||
|
||||
mNodeList = newlist;
|
||||
delete list;
|
||||
mNodeList = list = newlist;
|
||||
}
|
||||
|
||||
// Pad our list end?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue