diff --git a/src/game/savegame.h b/src/game/savegame.h index d260bd7a8..54316f384 100644 --- a/src/game/savegame.h +++ b/src/game/savegame.h @@ -20,7 +20,6 @@ typedef enum SAVEGAME_VERSION { VERSION_0 = 0, VERSION_1 = 1, VERSION_2 = 2, - VERSION_3 = 3, } SAVEGAME_VERSION; typedef enum SAVEGAME_FORMAT { diff --git a/src/game/savegame/savegame_bson.c b/src/game/savegame/savegame_bson.c index 5536e7373..02316e88f 100644 --- a/src/game/savegame/savegame_bson.c +++ b/src/game/savegame/savegame_bson.c @@ -1266,12 +1266,9 @@ bool Savegame_BSON_LoadFromFile(MYFILE *fp, GAME_INFO *game_info) goto cleanup; } - if (header.version >= VERSION_3) { - struct json_object_s *music_obj = - json_object_get_object(root_obj, "music"); - if (!SaveGame_BSON_LoadCurrentMusic(music_obj)) { - goto cleanup; - } + if (!SaveGame_BSON_LoadCurrentMusic( + json_object_get_object(root_obj, "music"))) { + goto cleanup; } ret = true;