Fixed crash in configfile_save

This commit is contained in:
MysterD 2022-02-27 01:02:32 -08:00
parent ab698e976b
commit b3550484e4
1 changed files with 1 additions and 0 deletions

View File

@ -423,6 +423,7 @@ void configfile_save(const char *filename) {
// save enabled mods
for (unsigned int i = 0; i < gModTableLocal.entryCount; i++) {
struct ModListEntry* entry = &gModTableLocal.entries[i];
if (entry == NULL) { continue; }
if (!entry->enabled) { continue; }
fprintf(file, "%s %s\n", "enable-mod:", entry->name);
}