From 578f576d90a69febb20ff0094a4670bd791b9a89 Mon Sep 17 00:00:00 2001 From: Raeschen Date: Tue, 27 Feb 2024 19:37:15 +0100 Subject: [PATCH] Fix datum components (#15788) --- code/datums/components/_component.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/components/_component.dm b/code/datums/components/_component.dm index 2e177c8ff36..0aa3c9889f4 100644 --- a/code/datums/components/_component.dm +++ b/code/datums/components/_component.dm @@ -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