Skip to content

Commit

Permalink
Ignore unvisited members when skipping an out-of-bounds entry
Browse files Browse the repository at this point in the history
  • Loading branch information
BevapDin committed Dec 25, 2019
1 parent 4536d48 commit 097c266
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mapgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ void mapgen_function_json_base::setup_setmap( const JsonArray &parray )
tmp_x2 = jmapgen_int( pjo, "x2" );
tmp_y2 = jmapgen_int( pjo, "y2" );
if( !check_inbounds( tmp_x2, tmp_y2, pjo ) ) {
pjo.allow_omitted_members();
continue;
}
}
Expand Down

0 comments on commit 097c266

Please sign in to comment.