Fixed crash in configfile_save

This commit is contained in:
MysterD 2022-02-27 01:02:32 -08:00
parent a35d759a46
commit 0f86018bfe

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);
}