Skip to content

Commit

Permalink
fix: If GMalloc pointer is nullptr, it's not valid, so keep scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
UE4SS committed Sep 20, 2024
1 parent 6d0a2b4 commit 82b2ebf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion UE4SS/src/Signatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,14 @@ namespace RC
Output::send(STR("GMalloc address: {} <- Lua Script\n"), address);
Unreal::FMalloc::UnrealStaticGMalloc = static_cast<Unreal::FMalloc**>(address);
Unreal::GMalloc = *Unreal::FMalloc::UnrealStaticGMalloc;
return DidLuaScanSucceed::Yes;
if (Unreal::GMalloc)
{
return DidLuaScanSucceed::Yes;
}
else
{
return DidLuaScanSucceed::No;
}
},
[&](DidLuaScanSucceed did_lua_scan_succeed) {
if (did_lua_scan_succeed == DidLuaScanSucceed::No)
Expand Down

0 comments on commit 82b2ebf

Please sign in to comment.