Skip to content

Commit

Permalink
Experimental AI: clear recruit cache when no recruit action found
Browse files Browse the repository at this point in the history
(cherry-picked from commit f810504)
  • Loading branch information
mattsc committed Oct 7, 2018
1 parent 9b6f933 commit f1eacc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/ai/lua/generic_recruit_engine.lua
Expand Up @@ -586,6 +586,9 @@ return {

return true
else
-- This results in the CA being blacklisted -> clear cache
recruit_data.recruit = nil

return false
end
end
Expand Down

0 comments on commit f1eacc5

Please sign in to comment.