From a0fd40d44d4f9705332cb80021f802cc7978d998 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 30 Mar 2018 19:03:12 +0200 Subject: [PATCH] Use strcmp to compare script names like R* does --- SilentPatchSA/ScriptSA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SilentPatchSA/ScriptSA.cpp b/SilentPatchSA/ScriptSA.cpp index e6bba4c..796af87 100644 --- a/SilentPatchSA/ScriptSA.cpp +++ b/SilentPatchSA/ScriptSA.cpp @@ -5,7 +5,7 @@ int32_t* CRunningScript::GetDay_GymGlitch() { static int32_t Out[2]; - if ( strncmp(Name, "gymbike", 8) == 0 || strncmp(Name, "gymbenc", 8) == 0 || strncmp(Name, "gymtrea", 8) == 0 || strncmp(Name, "gymdumb", 8) == 0 ) + if ( strcmp(Name, "gymbike") == 0 || strcmp(Name, "gymbenc") == 0 || strcmp(Name, "gymtrea") == 0 || strcmp(Name, "gymdumb") == 0 ) { static int* const StatTypesInt = *AddressByVersion(0x55C0D8, 0x55C578, 0x574F24);