diff -r f8248bcba8f1 -r 013deb83086b hedgewars/uTextures.pas --- a/hedgewars/uTextures.pas Mon May 28 10:38:27 2012 +0200 +++ b/hedgewars/uTextures.pas Tue Jun 05 22:17:06 2012 +0200 @@ -212,7 +212,7 @@ Surface2Tex^.atlas^.w:=tw; Surface2Tex^.atlas^.h:=th; - GetMem(tmpp, tw * th * surf^.format^.BytesPerPixel); + tmpp:= GetMem(tw * th * surf^.format^.BytesPerPixel); fromP4:= Surf^.pixels; toP4:= tmpp;