Browse Source

Fix memory corruption on Precipitation::destroySplash.

LuisAntonRebollo 11 years ago
parent
commit
a3bdaf128f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Engine/source/T3D/fx/precipitation.cpp

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

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