From 93112142b21ac769fc461230e5841e514d812801 Mon Sep 17 00:00:00 2001 From: actual-nh <74678550+actual-nh@users.noreply.github.com> Date: Sat, 2 Jan 2021 15:48:22 -0500 Subject: [PATCH] Close #46439 (segmentation error) Using a patch suggested by @anothersimulacrum, prevents a segmentation error (instead giving a much more useful failed test). --- tests/vehicle_ramp_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/vehicle_ramp_test.cpp b/tests/vehicle_ramp_test.cpp index 7a587923f91a9..81a561951d0cb 100644 --- a/tests/vehicle_ramp_test.cpp +++ b/tests/vehicle_ramp_test.cpp @@ -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++ ) {