Skip to content

Commit

Permalink
Close CleverRaven#46439 (segmentation error)
Browse files Browse the repository at this point in the history
Using a patch suggested by @anothersimulacrum, prevents a segmentation error (instead giving a much more useful failed test).
  • Loading branch information
actual-nh authored Jan 2, 2021
1 parent 0362930 commit 9311214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/vehicle_ramp_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ static void level_out( const vproto_id &veh_id, const bool drop_pos )
REQUIRE( z_span.size() > 1 );

monster *dmon_p = g->place_critter_at( mtype_id( "debug_mon" ), map_starting_point );
REQUIRE( dmon_p );
monster &dmon = *dmon_p;

for( int y = 0; y < SEEY * MAPSIZE; y++ ) {
Expand Down

0 comments on commit 9311214

Please sign in to comment.