浏览代码

Fix memory corruption on Precipitation::destroySplash.

LuisAntonRebollo 11 年之前
父节点
当前提交
a3bdaf128f
共有 1 个文件被更改,包括 1 次插入3 次删除
  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)