diff --git a/CAPI/cpp/API/src/logic.cpp b/CAPI/cpp/API/src/logic.cpp index 13c174b..c06eb09 100644 --- a/CAPI/cpp/API/src/logic.cpp +++ b/CAPI/cpp/API/src/logic.cpp @@ -618,6 +618,7 @@ void Logic::LoadBuffer(const protobuf::MessageToClient& message) { std::lock_guard lock(mtxState); std::swap(currentState, bufferState); + counterState = counterBuffer; logger->info("Update State!"); } freshed = true; diff --git a/CAPI/python/PyAPI/logic.py b/CAPI/python/PyAPI/logic.py index 65af3bb..b3763c6 100644 --- a/CAPI/python/PyAPI/logic.py +++ b/CAPI/python/PyAPI/logic.py @@ -476,6 +476,7 @@ class Logic(ILogic): if Setting.asynchronous(): with self.__mtxState: self.__currentState, self.__bufferState = self.__bufferState, self.__currentState + self.__counterState = self.__counterBuffer self.__logger.info("Update state!") self.__freshed = True else: