From 4b21677649d8b359c7edb18dfb7f7ff0b8caccf2 Mon Sep 17 00:00:00 2001 From: rPhase Date: Sat, 29 Nov 2025 13:08:54 -0800 Subject: [PATCH] Make consistent with existing code --- src/pc/lua/utils/smlua_misc_utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pc/lua/utils/smlua_misc_utils.c b/src/pc/lua/utils/smlua_misc_utils.c index 3b0a4e849..75cdd6094 100644 --- a/src/pc/lua/utils/smlua_misc_utils.c +++ b/src/pc/lua/utils/smlua_misc_utils.c @@ -570,7 +570,7 @@ bool mod_file_exists(const char* filename) { if (gLuaActiveMod == NULL) { return false; } char normPath[SYS_MAX_PATH] = { 0 }; - char normalized_relative[SYS_MAX_PATH] = ""; + char normRelative[SYS_MAX_PATH] = { 0 }; if (snprintf(normPath, sizeof(normPath), "%s", filename) < 0) { LOG_ERROR("Failed to copy filename for normalization: %s", filename); @@ -580,9 +580,9 @@ bool mod_file_exists(const char* filename) { for (s32 i = 0; i < gLuaActiveMod->fileCount; i++) { struct ModFile* file = &gLuaActiveMod->files[i]; - strcpy(normalized_relative, file->relativePath); - normalize_path(normalized_relative); - if (!strcmp(normalized_relative, normPath)) { + strcpy(normRelative, file->relativePath); + normalize_path(normRelative); + if (!strcmp(normRelative, normPath)) { return true; } }