Debug Voting (#9776)

Fixes #9755 by not putting any nulls into the voting list, puts in debug information to find out how this occurred in the first place
This commit is contained in:
clusterfack
2016-04-30 00:59:08 -05:00
committed by sood
parent abbad38cd1
commit e36a2144c5
2 changed files with 8 additions and 1 deletions

View File

@@ -4,6 +4,9 @@
* A large number of misc global procs.
*/
/proc/SAFE_CRASH(var/msg)
CRASH(msg)
/proc/Get_Angle(atom/movable/start,atom/movable/end)//For beams.
if(!start || !end) return 0
var/dy

View File

@@ -330,7 +330,11 @@ var/global/datum/controller/vote/vote = new()
return
if(ismob(user))
user = user:client
var/mob/M = user
if(M.client)
user = M.client
else
CRASH("The user [M.name] of type [M.type] has been passed as a mob reference without a client to voting.interact()")
voting |= user
interface.show(user)