From 7e211d7bc35551a02d44e85b8e817b3d230d7289 Mon Sep 17 00:00:00 2001 From: TalkingCactus Date: Sun, 27 Nov 2016 07:08:32 -0500 Subject: [PATCH] auto vote runtime error fix (#78) --- code/datums/action.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/datums/action.dm b/code/datums/action.dm index dd04d7e95a..d4afc09b5d 100644 --- a/code/datums/action.dm +++ b/code/datums/action.dm @@ -41,6 +41,8 @@ M.update_action_buttons() /datum/action/proc/Remove(mob/M) + if(!M) + return if(M.client) M.client.screen -= button button.moved = FALSE //so the button appears in its normal position when given to another owner.