Skip to content

Commit

Permalink
Fix incorrect table being inserted into in `AIGetMarkerPositionsAroun…
Browse files Browse the repository at this point in the history
…dLocation` (#6118)
  • Loading branch information
relent0r authored Apr 30, 2024
1 parent 7f217a4 commit f80b936
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/snippets/ai.6118.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- (#6118) Fix issue with default utility function AIGetMarkerPositionsAroundLocation using an invalid table.
2 changes: 1 addition & 1 deletion lua/AI/aiutilities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function AIGetMarkerPositionsAroundLocation(aiBrain, markerType, pos, radius, th
local markers = AIGetMarkersAroundLocation(aiBrain, markerType, pos, radius, threatMin, threatMax, threatRings, threatType)
local retMarkers = {}
for _, v in markers do
table.insert(markers, v.Position)
table.insert(retMarkers, v.Position)
end

return retMarkers
Expand Down

0 comments on commit f80b936

Please sign in to comment.