Skip to content

Commit

Permalink
fix: check for list emptyness before pick (#155)
Browse files Browse the repository at this point in the history
## About The Pull Request

check for list emptyness before pick in
`dispatch_announcement_to_players`

## Why It's Good For The Game

bug fixed
  • Loading branch information
Gaxeer authored Apr 20, 2024
1 parent 77d0539 commit f4cb7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/__HELPERS/priority_announce.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
SEND_SOUND(target, sound(sound_to_play))

/// SS220 TTS START
var/mob/living/silicon/ai/active_ai = pick(active_ais(TRUE, null))
var/mob/living/silicon/ai/active_ai = DEFAULTPICK(active_ais(TRUE, null), null)
var/datum/tts_seed/announcement_tts_seed = active_ai ? active_ai.get_tts_seed() : /datum/tts_seed/silero/glados
INVOKE_ASYNC(
SStts220, \
Expand Down

0 comments on commit f4cb7b6

Please sign in to comment.