summaryrefslogtreecommitdiff
path: root/apps/plugins/mazezam.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mazezam.c')
-rw-r--r--apps/plugins/mazezam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/mazezam.c b/apps/plugins/mazezam.c
index 8981986144..6b9ad43cc7 100644
--- a/apps/plugins/mazezam.c
+++ b/apps/plugins/mazezam.c
@@ -807,8 +807,8 @@ static void game_loop(struct resume_data *r)
807static void resume_load_data (struct resume_data *r, struct resume_data *old) 807static void resume_load_data (struct resume_data *r, struct resume_data *old)
808{ 808{
809 struct configdata config[] = { 809 struct configdata config[] = {
810 {TYPE_INT,0,MAZEZAM_NUM_LEVELS-1,&(r->level), 810 {TYPE_INT,0,MAZEZAM_NUM_LEVELS-1, { .int_p = &(r->level) },
811 MAZEZAM_CONFIG_LEVELS_NAME,NULL,NULL} 811 MAZEZAM_CONFIG_LEVELS_NAME,NULL}
812 }; 812 };
813 813
814 if (configfile_load(MAZEZAM_CONFIG_FILENAME,config, 814 if (configfile_load(MAZEZAM_CONFIG_FILENAME,config,
@@ -827,8 +827,8 @@ static void resume_load_data (struct resume_data *r, struct resume_data *old)
827static void resume_save_data (struct resume_data *r, struct resume_data *old) 827static void resume_save_data (struct resume_data *r, struct resume_data *old)
828{ 828{
829 struct configdata config[] = { 829 struct configdata config[] = {
830 {TYPE_INT,0,MAZEZAM_NUM_LEVELS-1,&(r->level), 830 {TYPE_INT,0,MAZEZAM_NUM_LEVELS-1, {.int_p = &(r->level) },
831 MAZEZAM_CONFIG_LEVELS_NAME,NULL,NULL} 831 MAZEZAM_CONFIG_LEVELS_NAME,NULL}
832 }; 832 };
833 833
834 /* To reduce disk usage, only write the file if the resume data has 834 /* To reduce disk usage, only write the file if the resume data has