Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Assets/Standard Assets/Scripts/AI/GOAP/GoapPlanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ private HashSet<GoapAction> actionSubset(HashSet<GoapAction> actions, GoapAction
*/
private bool inState(HashSet<KeyValuePair<string,object>> test, HashSet<KeyValuePair<string,object>> state) {
bool allMatch = true;
if (test.Count < 1) {
return false;
}
foreach (KeyValuePair<string,object> t in test) {
bool match = false;
foreach (KeyValuePair<string,object> s in state) {
Expand Down