From 226780e0ed8005bdfab4a38f4c4d182e83b03d91 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Wed, 13 Jun 2018 21:30:14 -0500 Subject: [PATCH] [MIRROR] Fixes vote ss trying to remove actions of people who already voted. (#7099) * Fixes votes trying to remove actions of people who already voted. (#38431) * Fixes vote ss trying to remove actions of people who already voted. --- code/controllers/subsystem/vote.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/controllers/subsystem/vote.dm b/code/controllers/subsystem/vote.dm index 0407a5272d..34ead8e95e 100644 --- a/code/controllers/subsystem/vote.dm +++ b/code/controllers/subsystem/vote.dm @@ -337,6 +337,8 @@ SUBSYSTEM_DEF(vote) return 1 /datum/action/vote/proc/remove_from_client() + if(!owner) + return if(owner.client) owner.client.player_details.player_actions -= src else if(owner.ckey)