hedgewars/uTextures.pas
changeset 7157 04f2155e392c
parent 7151 ec15d9e1a7e3
child 7186 013deb83086b
child 8027 e5ba3dd12531
--- a/hedgewars/uTextures.pas	Wed May 30 22:45:30 2012 +0400
+++ b/hedgewars/uTextures.pas	Thu May 31 20:07:17 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;