Use strcmp to compare script names like R* does

This commit is contained in:
Silent 2018-03-30 19:03:12 +02:00
parent 2614f4d1b0
commit a0fd40d44d
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1

View File

@ -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<int**>(0x55C0D8, 0x55C578, 0x574F24);