Skip to content

Commit 31d1da8

Browse files
authored
Sanitize frequencies passed to broadcast() in NTSL (#6599)
1 parent 7e061ae commit 31d1da8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

monkestation/code/modules/NTSL/code/coding_language/implementations/telecomms_translator.dm

+1
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ GLOBAL_LIST_INIT(allowed_translations, list(
445445
// "But wait, wouldn't floating point mess this up?" You ask.
446446
// Nah. That actually can't happen when you multiply by a whole number.
447447
// Think about it.
448+
freq = sanitize_frequency(freq, free = TRUE)
448449
if(isnum(language)) // If the language was a lang bit instead of a datum
449450
language = LangBit2Datum(language)
450451
if(!islist(spans))

0 commit comments

Comments
 (0)