author | alfadur |
Fri, 17 May 2019 01:32:51 +0300 | |
changeset 15002 | 1a2dcea1732a |
parent 15001 | f359d8f86501 |
child 15003 | 980a948a5dff |
--- a/hedgewars/uLandObjects.pas Thu May 16 23:04:19 2019 +0200 +++ b/hedgewars/uLandObjects.pas Fri May 17 01:32:51 2019 +0300 @@ -536,10 +536,12 @@ if bRes then begin anchored:= anchorcnt = 0; - for i:= 1 to anchorcnt do + i:= 0; + while i < anchorcnt do begin anchored := CheckLandAny(anchors[i], x, y, lfLandMask); if anchored then break; + inc(i); end; bRes:= anchored; end;