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); PROFILE_START(PrecipDestroySplash);
if (drop == mSplashHead) if (drop == mSplashHead)
{ {
mSplashHead = NULL; mSplashHead = mSplashHead->nextSplashDrop;
PROFILE_END();
return;
} }
if (drop->nextSplashDrop) if (drop->nextSplashDrop)