From 098d9c48a605a9799b1484aef8cd894745b72ad5 Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Sun, 27 Oct 2024 00:12:44 +0300 Subject: [PATCH] check for atom --- .../translations/code/ru_names/ru_name_base.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modular_bandastation/translations/code/ru_names/ru_name_base.dm b/modular_bandastation/translations/code/ru_names/ru_name_base.dm index 069fd3e65a8dc..74e5f6fbaf790 100644 --- a/modular_bandastation/translations/code/ru_names/ru_name_base.dm +++ b/modular_bandastation/translations/code/ru_names/ru_name_base.dm @@ -37,8 +37,8 @@ /// Used for getting initial values, such as for recipies where resulted atom is not yet created. /proc/declent_ru_initial(atom/target, declent) - if(!ispath(target) && !istype(target)) - CRASH("declent_ru_initial got target that is not a path or a typed var!") + if(!istype(target) && !ispath(target, /atom)) + CRASH("declent_ru_initial got target that is not an atom or atom's path!") if(target::ru_name_base != target::name) return target::name switch(declent)