From 462fa9ca9c0414261d06d68b7a78b36f060565d2 Mon Sep 17 00:00:00 2001 From: praydog Date: Sat, 30 Dec 2023 00:23:40 -0800 Subject: [PATCH] Aiming: Forgot a nullptr check --- src/mods/vr/FFakeStereoRenderingHook.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mods/vr/FFakeStereoRenderingHook.cpp b/src/mods/vr/FFakeStereoRenderingHook.cpp index 4cb0f380..12e99c5c 100644 --- a/src/mods/vr/FFakeStereoRenderingHook.cpp +++ b/src/mods/vr/FFakeStereoRenderingHook.cpp @@ -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(); + } } }