changeset 7186 | 013deb83086b |
parent 7080 | dbf43c07a507 |
parent 7151 | ec15d9e1a7e3 |
child 7291 | ad4b6c2b09e8 |
--- 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;