fix the glitch causing pass-through in land objects besides first game
authorkoda
Thu, 18 Mar 2010 02:27:46 +0000
changeset 3017 4a52e0705011
parent 3015 20a9c8160e82
child 3018 13ceaad4767e
fix the glitch causing pass-through in land objects besides first game
hedgewars/uLand.pas
--- a/hedgewars/uLand.pas	Thu Mar 18 02:18:50 2010 +0000
+++ b/hedgewars/uLand.pas	Thu Mar 18 02:27:46 2010 +0000
@@ -861,6 +861,7 @@
 
 procedure free_uLand;
 begin
+    FillChar(LandPixels, sizeof(TLandArray), 0);
     if LandBackSurface <> nil then
         SDL_FreeSurface(LandBackSurface);
 end;