Skip to content

Commit

Permalink
what about now
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed May 31, 2023
1 parent df60b7a commit 8efc6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/sdk/ConsoleManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>{20});

if (function_references.empty()) {
SPDLOG_ERROR("Failed to find any references to containing function");
Expand Down

0 comments on commit 8efc6e2

Please sign in to comment.