diff --git a/include/state-machine_pool.hpp b/include/state-machine_pool.hpp index 722b5b7..f05121f 100755 --- a/include/state-machine_pool.hpp +++ b/include/state-machine_pool.hpp @@ -35,7 +35,7 @@ class StateMachinePool { } void Update(const std::string &id) { - auto &machine = machines.find(id); + auto &machine = machines.find(id)->second; auto &owner = machine->GetOwner(); const std::string ¤t = machine->GetCurrentStateId();