diff options
Diffstat (limited to 'apps/plugins/jewels.c')
-rw-r--r-- | apps/plugins/jewels.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/jewels.c b/apps/plugins/jewels.c index 51ad642c48..586caabfa5 100644 --- a/apps/plugins/jewels.c +++ b/apps/plugins/jewels.c | |||
@@ -480,6 +480,8 @@ static void jewels_savegame(struct game_context* bj) | |||
480 | int fd; | 480 | int fd; |
481 | /* write out the game state to the save file */ | 481 | /* write out the game state to the save file */ |
482 | fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); | 482 | fd = rb->open(SAVE_FILE, O_WRONLY|O_CREAT); |
483 | if(fd < 0) return; | ||
484 | |||
483 | rb->write(fd, &bj->tmp_type, sizeof(bj->tmp_type)); | 485 | rb->write(fd, &bj->tmp_type, sizeof(bj->tmp_type)); |
484 | rb->write(fd, &bj->type, sizeof(bj->type)); | 486 | rb->write(fd, &bj->type, sizeof(bj->type)); |
485 | rb->write(fd, &bj->score, sizeof(bj->score)); | 487 | rb->write(fd, &bj->score, sizeof(bj->score)); |