Skip to content

Commit 14fa2fa

Browse files
committed
🐛 fix errors in goap
1 parent 1960302 commit 14fa2fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/aitoolkit/goap.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ namespace aitoolkit::goap {
252252
action->apply_effects(blackboard);
253253
}
254254
}
255+
256+
private:
257+
std::queue<action_ptr<T>> m_actions;
255258
};
256259

257260
/**
@@ -342,5 +345,7 @@ namespace aitoolkit::goap {
342345
}
343346
}
344347
}
345-
};
348+
349+
return plan<T>(std::queue<action_ptr<T>>{});
350+
}
346351
}

0 commit comments

Comments
 (0)