Skip to content

Commit

Permalink
Merge branch 'macro-for-initial' into fix-oops
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Oct 26, 2024
2 parents 78f951c + 098d9c4 commit ed3db98
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 ed3db98

Please sign in to comment.