Skip to content

Commit

Permalink
pass default value
Browse files Browse the repository at this point in the history
  • Loading branch information
HadeanLake committed Sep 9, 2024
1 parent 80cc280 commit b7ca662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/savegame_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4583,12 +4583,12 @@ void ter_furn_migrations::load( const JsonObject &jo )
ter_str_id from_ter;
mandatory( jo, false, "from_ter", from_ter );
mandatory( jo, false, "to_ter", to_ter );
optional( jo, false, "to_furn", to_furn );
optional( jo, false, "to_furn", to_furn, furn_str_id::NULL_ID() );
ter_migrations.insert( std::make_pair( from_ter, std::make_pair( to_ter, to_furn ) ) );
} else {
furn_str_id from_furn;
mandatory( jo, false, "from_furn", from_furn );
optional( jo, false, "to_ter", to_ter );
optional( jo, false, "to_ter", to_ter, ter_str_id::NULL_ID() );
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 b7ca662

Please sign in to comment.