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.
This commit is contained in:
C.L
2022-08-01 16:09:59 -04:00
parent 65ca657716
commit ec044b099e
+1 -1
View File
@@ -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.