Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix incorrect table being inserted into AI marker function #6118

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/snippets/ai.6118.md
@@ -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
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