From ec044b099ef6bf6c54dc102348bb7116f94ef29c Mon Sep 17 00:00:00 2001 From: "C.L" Date: Mon, 1 Aug 2022 16:09:59 -0400 Subject: [PATCH] Item Runtime hotfix Hotfix to make items not shoot out runtimes. The game was checking for a variable that was 'null' to see if it has a length, which is something that doesn't occur. This fixes that by simply making it check to see if it has a possessed_voice variable. --- code/game/objects/items.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 5fc3eff231..94e2f68257 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -259,7 +259,7 @@ ghost.assumeform(src) ghost.animate_towards(user) //VORESTATION EDIT START. This handles possessed items. - if(src.possessed_voice.len && !(user.ckey in warned_of_possession)) //Is this item possessed? + if(src.possessed_voice && src.possessed_voice.len && !(user.ckey in warned_of_possession)) //Is this item possessed? warned_of_possession |= user.ckey tgui_alert_async(user,{" THIS ITEM IS POSSESSED BY A PLAYER CURRENTLY IN THE ROUND. This could be by anomalous means or otherwise.