From a2c8df5d01c80563ab901c9539c066c68aba4e66 Mon Sep 17 00:00:00 2001 From: Erris Date: Tue, 22 Apr 2025 09:41:05 +0200 Subject: [PATCH] fixed compilation error --- include/state-machine_pool.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();