From 8efc6e2d9f5e98ca5697b1711f14adea0ef4b29c Mon Sep 17 00:00:00 2001 From: praydog Date: Tue, 30 May 2023 21:03:54 -0700 Subject: [PATCH] what about now --- shared/sdk/ConsoleManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/sdk/ConsoleManager.cpp b/shared/sdk/ConsoleManager.cpp index e3d233e7..6a7b2c42 100644 --- a/shared/sdk/ConsoleManager.cpp +++ b/shared/sdk/ConsoleManager.cpp @@ -37,7 +37,7 @@ FConsoleManager* FConsoleManager::get() { // Check how many references there are to this function, if it's greater than say... 20, this is // IConsoleManager::SetupSingleton // If not, we can just disassemble the function looking for references to global variables - const auto function_references = utility::scan_displacement_references(core_module, *containing_function, 20); + const auto function_references = utility::scan_displacement_references(core_module, *containing_function, std::optional{20}); if (function_references.empty()) { SPDLOG_ERROR("Failed to find any references to containing function");