Skip to content

Commit

Permalink
Aiming: Forgot a nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Dec 30, 2023
1 parent d54e7f2 commit 462fa9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mods/vr/FFakeStereoRenderingHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3992,7 +3992,9 @@ __forceinline void FFakeStereoRenderingHook::calculate_stereo_view_offset(

// Modify Player Control Rotation
if (true_index == 1 && vr->is_aim_modify_player_control_rotation_enabled() && vr->is_any_aim_method_active()) {
g_hook->m_tracking_system_hook->manual_update_control_rotation();
if (g_hook->m_tracking_system_hook != nullptr) {
g_hook->m_tracking_system_hook->manual_update_control_rotation();
}
}
}

Expand Down

0 comments on commit 462fa9c

Please sign in to comment.