From 726c67c6634f6204c2d2f91a1289182a0f473a57 Mon Sep 17 00:00:00 2001 From: praydog Date: Tue, 12 Dec 2023 18:44:48 -0800 Subject: [PATCH] Fix sign warnings on newest VS2022 --- src/mods/vr/FFakeStereoRenderingHook.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mods/vr/FFakeStereoRenderingHook.cpp b/src/mods/vr/FFakeStereoRenderingHook.cpp index beffdca0..863e61bc 100644 --- a/src/mods/vr/FFakeStereoRenderingHook.cpp +++ b/src/mods/vr/FFakeStereoRenderingHook.cpp @@ -519,14 +519,14 @@ bool FFakeStereoRenderingHook::standard_fake_stereo_hook(uintptr_t vtable) { } const auto stereo_projection_matrix_index = *stereo_view_offset_index + 1; - const auto is_4_18_or_lower = stereo_view_offset_index <= 6; + const auto is_4_18_or_lower = *stereo_view_offset_index <= 6; const auto& stereo_view_offset_func = ((uintptr_t*)vtable)[*stereo_view_offset_index]; auto render_texture_render_thread_func = utility::find_virtual_function_from_string_ref(game, L"RenderTexture_RenderThread"); // Seems more robust than simply just checking the vtable index. - m_uses_old_rendertarget_manager = stereo_view_offset_index <= 11 && !render_texture_render_thread_func; + m_uses_old_rendertarget_manager = *stereo_view_offset_index <= 11 && !render_texture_render_thread_func; if (!render_texture_render_thread_func) { // Fallback scan to checking for the first non-default virtual function (<= 4.18)