Browse Source

Merge pull request #729 from LuisAntonRebollo/fix_mem_corruption_on_precipitation

Fix #224 Memory corruption on Precipitation::destroySplash.
Areloch 11 years ago
parent
commit
ceccd06198
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);
    if (drop == mSplashHead)
    {
-      mSplashHead = NULL;
-      PROFILE_END();
-      return;
+      mSplashHead = mSplashHead->nextSplashDrop;
    }
 
    if (drop->nextSplashDrop)