Skip to content

Commit

Permalink
Remove check for unused member.
Browse files Browse the repository at this point in the history
The JSON object member "om_special" is never actually loaded, so it should not be required.
  • Loading branch information
BevapDin committed Dec 25, 2019
1 parent 328dd45 commit 3480f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mission_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ bool mission_util::set_update_mapgen( const JsonObject &jo,
return false;
}

if( jo.has_member( "om_special" ) && jo.has_member( "om_terrain" ) ) {
if( jo.has_member( "om_terrain" ) ) {
const std::string om_terrain = jo.get_string( "om_terrain" );
const auto mission_func = [update_map, om_terrain]( mission * miss ) {
tripoint update_pos3 = mission_util::reveal_om_ter( om_terrain, 1, false );
Expand Down

0 comments on commit 3480f2b

Please sign in to comment.