Fix a bug introduced in previous revision (accidental delete of land surface)
authorunc0rr
Sun, 27 Jan 2008 17:04:54 +0000
changeset 765 a45111da760e
parent 764 7513452b1d51
child 766 cdc8f75ab7bc
Fix a bug introduced in previous revision (accidental delete of land surface)
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Sun Jan 27 16:49:11 2008 +0000
+++ b/hedgewars/uStore.pas	Sun Jan 27 17:04:54 2008 +0000
@@ -210,7 +210,7 @@
           if GraveName = '' then GraveName:= 'Simple';
           texsurf:= LoadImage(Pathz[ptGraves] + '/' + GraveName, false, true, true);
           GraveTex:= Surface2Tex(texsurf);
-          SDL_FreeSurface(tmpsurf)
+          SDL_FreeSurface(texsurf)
           end
     end;