2
0
Эх сурвалжийг харах

Fix memory corruption on Precipitation::destroySplash.

LuisAntonRebollo 11 жил өмнө
parent
commit
a3bdaf128f

+ 1 - 3
Engine/source/T3D/fx/precipitation.cpp

@@ -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)