diff -r 2b30283a402c -r 8e221d2a368e hedgewars/uTextures.pas --- a/hedgewars/uTextures.pas Sun Jan 10 17:39:27 2016 +0100 +++ b/hedgewars/uTextures.pas Sun Jan 10 18:01:17 2016 +0100 @@ -176,6 +176,9 @@ r, slr, w, si, li: LongWord; begin w:= surf^.w; + // just a single pixel, nothing to do here + if (w < 2) and (surf^.h < 2) then + exit; slr:= surf^.h - 2; si:= 0; li:= w - 1;