mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Fix watchdog crashing from an invalid map name being written
This commit is contained in:
@@ -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]")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user