summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index 6ae8cb31ed..a372eb0813 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -1046,6 +1046,8 @@ static void brickmania_savegame(void)
1046 1046
1047 /* write out the game state to the save file */ 1047 /* write out the game state to the save file */
1048 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); 1048 fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT);
1049 if(fd < 0) return;
1050
1049 rb->write(fd, &pad_pos_x, sizeof(pad_pos_x)); 1051 rb->write(fd, &pad_pos_x, sizeof(pad_pos_x));
1050 rb->write(fd, &life, sizeof(life)); 1052 rb->write(fd, &life, sizeof(life));
1051 rb->write(fd, &game_state, sizeof(game_state)); 1053 rb->write(fd, &game_state, sizeof(game_state));