mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Fix memory corruption on Precipitation::destroySplash.
This commit is contained in:
parent
4510e29463
commit
a3bdaf128f
1 changed files with 1 additions and 3 deletions
|
|
@ -1168,9 +1168,7 @@ void Precipitation::destroySplash(Raindrop *drop)
|
||||||
PROFILE_START(PrecipDestroySplash);
|
PROFILE_START(PrecipDestroySplash);
|
||||||
if (drop == mSplashHead)
|
if (drop == mSplashHead)
|
||||||
{
|
{
|
||||||
mSplashHead = NULL;
|
mSplashHead = mSplashHead->nextSplashDrop;
|
||||||
PROFILE_END();
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (drop->nextSplashDrop)
|
if (drop->nextSplashDrop)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue