Skip to content

Commit

Permalink
I fell for the oldest trick in the book
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Jan 1, 2024
1 parent 436a554 commit 50dea89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReGenny.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,8 +1222,8 @@ void ReGenny::reset_lua_state() {
return sol::make_object(s, rg->add_address_resolver([f](std::string input) -> uintptr_t {
auto result = f(input);

if (result.get_type(1) == sol::type::number) {
return result.get<uintptr_t>(1);
if (result.get_type(0) == sol::type::number) {
return result.get<uintptr_t>(0);
}

return 0;
Expand Down

0 comments on commit 50dea89

Please sign in to comment.