hedgewars/uTextures.pas
changeset 7151 ec15d9e1a7e3
parent 6982 8d41d22a291d
child 7186 013deb83086b
child 8027 e5ba3dd12531
--- a/hedgewars/uTextures.pas	Wed May 30 19:01:19 2012 +0400
+++ b/hedgewars/uTextures.pas	Thu May 31 15:14:39 2012 +0400
@@ -167,7 +167,7 @@
     Surface2Tex^.rx:= Surf^.w / tw;
     Surface2Tex^.ry:= Surf^.h / th;
 
-    GetMem(tmpp, tw * th * surf^.format^.BytesPerPixel);
+    tmpp:= GetMem(tw * th * surf^.format^.BytesPerPixel);
 
     fromP4:= Surf^.pixels;
     toP4:= tmpp;