1 parent 15b8727 commit 9e02ef6Copy full SHA for 9e02ef6
1 file changed
Code/max/Containers/StateMachine/StateMachine.hpp
@@ -24,8 +24,7 @@ namespace StateMachine {
24
template<typename T>
25
constexpr void AttemptTransition(T input) noexcept {
26
auto transition_happened = false;
27
- auto i = size_t{0};
28
- auto attempt_transition = [this, &transition_happened, &i, &input](auto&& arg) {
+ auto attempt_transition = [this, &transition_happened, &input](auto&& arg) {
29
if (!transition_happened && current_node_index_ == arg.this_node_) {
30
auto possible_new_node_index = arg.AttemptTransition(input);
31
if (possible_new_node_index) {
0 commit comments