Check the return value for any null values before doing anything with it to avoid
a runtime.
This commit is contained in:
Sheep
2022-09-24 20:22:26 +01:00
committed by GitHub
parent e944d58c84
commit 5d55358159
+2
View File
@@ -34,6 +34,8 @@
/datum/vote/map/handle_result(result)
// Find target map.
if(!result)
return
var/datum/map/top_voted_map
for(var/x in subtypesof(/datum/map))
var/datum/map/M = x