fixed randomstock bug (#8360)

if there weren't tables in the area, it'd shit itself cuz it can't pick from an empty list
This commit is contained in:
Erki
2020-03-04 21:39:09 +02:00
committed by GitHub
parent 6f6cbe7a63
commit 4b9fe64ffe

View File

@@ -147,7 +147,7 @@ var/list/global/random_stock_large = list()
if (cratespawn)
return emptiest
else
else if (length(tables))
//If cratespawn is zero, we either failed to find a crate to spawn in, or didnt select
//crate spawning with the random check.
var/turf/clearest