From f7b210999e16b46afa3404ef46eba52317f6b09f Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:30:07 +0800 Subject: [PATCH] [bot] Match `UpgradeRecordFile(...)` --- bot/unnamed_1.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bot/unnamed_1.cpp b/bot/unnamed_1.cpp index 2faa0d1..19ad0e1 100644 --- a/bot/unnamed_1.cpp +++ b/bot/unnamed_1.cpp @@ -226,7 +226,10 @@ int UpgradeRecordFile(char *a1, int a2, int a3) if(FUNC_1(fp, a2)) { fclose(fp); - return FUNC_3(a1) != 0; + if(FUNC_3(a1)) + return 1; + else + return 0; } else { @@ -236,15 +239,18 @@ int UpgradeRecordFile(char *a1, int a2, int a3) } else if (a3 == 2) { - if(FUNC_2(fp, a2)) + if(!FUNC_2(fp, a2)) { fclose(fp); - return FUNC_4(a1) != 0; + return 0; } else { fclose(fp); - return 0; + if(FUNC_4(a1)) + return 1; + else + return 0; } } else