From 084b787845aef3a32d3280592ef63b01fc7d6de8 Mon Sep 17 00:00:00 2001 From: Jordan Longstaff Date: Mon, 28 Apr 2025 12:05:18 -0400 Subject: [PATCH] Proper casting of clearCamera argument Co-authored-by: Pepper0ni <93387759+Pepper0ni@users.noreply.github.com> --- soh/soh/Enhancements/timesaver_hook_handlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/timesaver_hook_handlers.cpp b/soh/soh/Enhancements/timesaver_hook_handlers.cpp index 0b10790d4..585e761a2 100644 --- a/soh/soh/Enhancements/timesaver_hook_handlers.cpp +++ b/soh/soh/Enhancements/timesaver_hook_handlers.cpp @@ -728,7 +728,7 @@ void TimeSaverOnVanillaBehaviorHandler(GIVanillaBehavior id, bool* should, va_li // The second argument determines whether the vanilla code should be run anyway. It // should be set to `true` ONLY IF said code calls `Play_ClearCamera`, false otherwise. - bool clearCamera = va_arg(args, bool); + bool clearCamera = (bool)va_arg(args, int); *should = clearCamera && enHeishi2->cameraId != MAIN_CAM; } break;