mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-01 21:21:59 +00:00
Fix runtimes when events cannot find a valid event area (#26594)
* Fix runtimes when events cannot find a valid event area * oops
This commit is contained in:
@@ -194,6 +194,9 @@
|
||||
var/mess_count = rand(5, 10)
|
||||
for(var/i in 1 to mess_count)
|
||||
var/area/target_area = findEventArea()
|
||||
if(!target_area)
|
||||
log_debug("Failed to generate themed messes: No valid event areas were found.")
|
||||
return
|
||||
var/list/turfs = get_area_turfs(target_area)
|
||||
while(length(turfs))
|
||||
var/turf/T = pick_n_take(turfs)
|
||||
|
||||
Reference in New Issue
Block a user