diff --git a/src/veh_type.cpp b/src/veh_type.cpp index 835e8f75f2a41..c180858c6e4ff 100644 --- a/src/veh_type.cpp +++ b/src/veh_type.cpp @@ -952,9 +952,9 @@ void vpart_info::check() const id.c_str() ); } } - if( transform_terrain_info && !( transform_terrain_info.post_terrain || - transform_terrain_info.post_furniture || - transform_terrain_info.post_field ) ) { + if( !!transform_terrain_info && !( transform_terrain_info->post_terrain || + transform_terrain_info->post_furniture || + transform_terrain_info->post_field ) ) { debugmsg( "transform_terrain_info must contain at least one of post_terrain, post_furniture and post_field for vehicle part %s", id.c_str() ); }