Fix datum components (#15788)

This commit is contained in:
Raeschen
2024-02-27 19:37:15 +01:00
committed by GitHub
parent 85ea90fb79
commit 578f576d90
+2 -2
View File
@@ -297,12 +297,12 @@
*/
/datum/component/proc/_GetInverseTypeList(our_type = type)
//we can do this one simple trick
. = list(our_type)
var/current_type = parent_type
. = list(our_type, current_type)
//and since most components are root level + 1, this won't even have to run
while (current_type != /datum/component)
current_type = type2parent(current_type)
. += current_type
current_type = type2parent(current_type)
/**
* Internal proc to handle most all of the signaling procedure