Skip to content

Commit

Permalink
world: fail detecting save world versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Dec 30, 2022
1 parent d9817ca commit 8932721
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/world.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ namespace phoenix {
game_version determine_world_version(buffer&& buf) {
auto archive = archive_reader::open(buf);

if (archive->is_save_game()) {
throw phoenix::parser_error {"world", "cannot automatically detect world version for save-games!s"};
}

archive_object chnk {};
archive->read_object_begin(chnk);

Expand Down

0 comments on commit 8932721

Please sign in to comment.