Skip to content

Commit

Permalink
do not suppress errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HadeanLake committed Sep 9, 2024
1 parent d0b941b commit 80cc280
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/savegame_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4581,15 +4581,15 @@ void ter_furn_migrations::load( const JsonObject &jo )
furn_str_id to_furn = furn_str_id::NULL_ID();
if( is_ter_migration ) {
ter_str_id from_ter;
mandatory( jo, true, "from_ter", from_ter );
mandatory( jo, true, "to_ter", to_ter );
optional( jo, true, "to_furn", to_furn );
mandatory( jo, false, "from_ter", from_ter );
mandatory( jo, false, "to_ter", to_ter );
optional( jo, false, "to_furn", to_furn );
ter_migrations.insert( std::make_pair( from_ter, std::make_pair( to_ter, to_furn ) ) );
} else {
furn_str_id from_furn;
mandatory( jo, true, "from_furn", from_furn );
optional( jo, true, "to_ter", to_ter );
mandatory( jo, true, "to_furn", to_furn );
mandatory( jo, false, "from_furn", from_furn );
optional( jo, false, "to_ter", to_ter );
mandatory( jo, false, "to_furn", to_furn );
furn_migrations.insert( std::make_pair( from_furn, std::make_pair( to_ter, to_furn ) ) );
}
}
Expand Down

0 comments on commit 80cc280

Please sign in to comment.