Skip to content

Commit

Permalink
fix: pick_safe_adjacent_tile returning invalid position (#4138)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 authored Jan 20, 2024
1 parent 664c5a2 commit b625f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/character_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ std::optional<tripoint> 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 )
Expand Down

0 comments on commit b625f1f

Please sign in to comment.