Fix stupid bug lol

This commit is contained in:
Agent X 2024-12-17 17:05:43 -05:00
parent 6757a3abb7
commit 36f0d1fcb7

View file

@ -513,7 +513,9 @@ bool mod_file_exists(const char* filename) {
for (s32 i = 0; i < gLuaActiveMod->fileCount; i++) {
struct ModFile* file = &gLuaActiveMod->files[i];
return !strcmp(file->relativePath, filename);
if (!strcmp(file->relativePath, filename)) {
return true;
}
}
return false;