Fix memory corruption on Precipitation::destroySplash.

This commit is contained in:
LuisAntonRebollo 2014-07-12 01:23:00 +02:00
parent 4510e29463
commit a3bdaf128f

View file

@ -1168,9 +1168,7 @@ void Precipitation::destroySplash(Raindrop *drop)
PROFILE_START(PrecipDestroySplash);
if (drop == mSplashHead)
{
mSplashHead = NULL;
PROFILE_END();
return;
mSplashHead = mSplashHead->nextSplashDrop;
}
if (drop->nextSplashDrop)