Skip to content

Commit

Permalink
Whoopsie.
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Apr 14, 2024
1 parent 4410e2c commit 8277d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rand/src/global/pick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn pick(options: ByondValue, secure: Option<bool>) -> ByondResult<Option<Byo

#[byond_fn]
pub fn pick_weighted(options: ByondValue, secure: Option<bool>) -> ByondResult<Option<ByondValue>> {
if options.length::<usize>()? < 1 {
if !options.is_list() || options.length::<usize>()? < 1 {
return Ok(None);
}
let options = options.read_assoc_list()?;
Expand Down

0 comments on commit 8277d14

Please sign in to comment.