From 6e578ae0d5787f22a584b42785a44f2d5ebe4288 Mon Sep 17 00:00:00 2001 From: scarf Date: Sat, 20 Jan 2024 17:15:01 +0900 Subject: [PATCH] fix: `pick_safe_adjacent_tile` returning invalid position --- src/character_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )