From 7ae24d3d3643fc44ef2636b8f2f676359e8fe7a6 Mon Sep 17 00:00:00 2001 From: Head Date: Sat, 28 Jul 2012 18:05:32 +0200 Subject: [PATCH] Added nullcheck to mind.dm --- code/datums/mind.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index e75c1231580..7e0a025aea2 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -24,6 +24,8 @@ datum/mind proc/transfer_to(mob/new_character) // multikey information is stored in the mob, not the mind, so // we need to clean this stuff up to avoid multikey alerts + if(!new_character || !current) + return current.lastKnownIP = null current.computer_id = null