diff -r c7ee9592c9a1 -r ec15d9e1a7e3 hedgewars/uTextures.pas --- 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;