Skip to content

Commit

Permalink
check for atom
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Oct 26, 2024
1 parent 17cef70 commit 098d9c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 098d9c4

Please sign in to comment.