From e9607a89f9da83b9cd0744a70b8129becaf77e6d Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Fri, 2 Aug 2024 22:20:44 +0800 Subject: [PATCH] [saco] Match `CAudio::GetRadioStation()` --- saco/game/audio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saco/game/audio.cpp b/saco/game/audio.cpp index f5711f6..0a70370 100644 --- a/saco/game/audio.cpp +++ b/saco/game/audio.cpp @@ -26,9 +26,9 @@ int CAudio::GetRadioStation() _asm mov al, [ecx+233] _asm mov iRadioStation, eax - if(iRadioStation <= 12) return iRadioStation; + if(iRadioStation < 0 || iRadioStation > 12) return -1; - return -1; + return iRadioStation; } //-----------------------------------------------------------