Skip to content

Commit 70a30fd

Browse files
authored
fix(TRSEntity): GetBoundsArray - Coordinates getting duplicated
When GetBoundsArray is used in a loop (such as in TRSEntity._WalkHoverHelper and TRSEntity._HoverHelper) the coordinates don't get cleared and get duplicated, causing the length of the coordinates array and the atpa array to be out of sync. Clearing the coordinates on a retry (or just in general) solves the issue. Screen movement during the loop probably influenced this as well.
1 parent c3cef21 commit 70a30fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

osrs/position/map/entities.simba

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ var
247247
vector: TVector2;
248248
dots: TPointArray;
249249
begin
250+
coordinates.Clear();
250251
if radians = $FFFF then
251252
radians := Minimap.CompassRadians;
252253

0 commit comments

Comments
 (0)