goap icon indicating copy to clipboard operation
goap copied to clipboard

Update GoapPlanner.cs

Open ScottyXIII opened this issue 7 years ago • 0 comments

Hi, not sure if this is still maintained but I come across this code from an article online and found an issue.

When I had no goals assigned I was noticing plans were still being built so I checked and found the inState() function would still return true if it's test parm was empty. The comment says it should return false so I put in a PR.

Was also wonder if there was a reason why you did not use state.Contains(t) rather than looping over state and checking each value? I think the built in Contains() function dose pretty much the same thing?

ScottyXIII avatar Jan 02 '19 00:01 ScottyXIII