diff --git a/src/core/commands/Commands.cpp b/src/core/commands/Commands.cpp index 0fa4c96..6ca23f1 100644 --- a/src/core/commands/Commands.cpp +++ b/src/core/commands/Commands.cpp @@ -1,6 +1,7 @@ #include "Commands.hpp" #include "Command.hpp" #include "LoopedCommand.hpp" +#include "core/backend/ScriptMgr.hpp" namespace YimMenu { @@ -15,6 +16,7 @@ namespace YimMenu while (g_Running) { Commands::RunLoopedCommands(); + ScriptMgr::Yield(); } } diff --git a/src/game/pointers/Pointers.cpp b/src/game/pointers/Pointers.cpp index ba3374e..e1cf07a 100644 --- a/src/game/pointers/Pointers.cpp +++ b/src/game/pointers/Pointers.cpp @@ -66,10 +66,10 @@ namespace YimMenu if (!scanner.Scan()) { LOG(FATAL) << "Some patterns could not be found, unloading."; - return false; } + PatternCache::Update(); return true; } } \ No newline at end of file