Skip to content

Commit

Permalink
Fix logic bug causing crashes when BP or head aiming is turned on
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Jun 14, 2023
1 parent b1ec911 commit 0926bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/vr/IXRTrackingSystemHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ int32_t* IXRTrackingSystemHook::get_ideal_debug_canvas_render_target_size(sdk::I
base_context.ctx->Registers.RegRax = 0xdeadbeef;
base_context.ctx->MemThreshold = 10;

utility::emulate(*module_within, return_address, 10, [&is_valid](const utility::ShemuContextExtended& ctx) -> utility::ExhaustionResult {
utility::emulate(*module_within, return_address, 10, base_context, [&is_valid](const utility::ShemuContextExtended& ctx) -> utility::ExhaustionResult {
if (check_ix(ctx.ctx->ctx->Instruction) || check_ix(ctx.next.ix)) {
is_valid = true;
return utility::ExhaustionResult::BREAK;
Expand Down

0 comments on commit 0926bf6

Please sign in to comment.