Fix watchdog crashing from an invalid map name being written

This commit is contained in:
D3athrow
2021-04-19 15:57:56 -05:00
parent 1176f90bcf
commit 0298f1be3d

View File

@@ -234,8 +234,7 @@ var/global/datum/controller/vote/vote = new()
if("map")
if(.)
chosen_map = ismapvote[.]
var/mapname = .
watchdog.chosen_map = copytext(mapname,1,(length(mapname)))
watchdog.chosen_map = .
log_game("Players voted and chose.... [watchdog.chosen_map]!")
//testing("Vote picked [chosen_map]")