diff --git a/src/character_functions.cpp b/src/character_functions.cpp index 528fbacc4803..bf61fc4e99d4 100644 --- a/src/character_functions.cpp +++ b/src/character_functions.cpp @@ -648,7 +648,7 @@ std::optional pick_safe_adjacent_tile( const Character &who ) } } - return random_entry( ret ); + return random_entry_opt( ret ); } bool is_bp_immune_to( const Character &who, body_part bp, damage_unit dam )