mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
Check the return value for any null values before doing anything with it to avoid a runtime.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user