gd_struct_set_defaults_from_array(data, gd_caveset_properties, caveset_defaults);
+ data->levelset_subdir = getStringCopy(leveldir_current->subdir);
+
return data;
}
if (gd_caveset_properties[i].type == GD_TYPE_LONGSTRING)
checked_free(STRUCT_MEMBER(char *, data, gd_caveset_properties[i].offset));
- free(data);
+ checked_free(data->levelset_subdir);
+
+ checked_free(data);
}
// ============================================================================
// and this one the highscores
GdHighScore highscore[GD_HIGHSCORE_NUM];
+
+ char *levelset_subdir; // current level set identifier
} GdCavesetData;
extern const GdStructDescriptor gd_caveset_properties[];