branchrust_reboot/main/GetRandomPrefabFixcancel
2 Years Ago
Fixed GetRandomPrefab() decrementing numToSpawn and sumToSpawn every time it returned a result, eventually resulting in zeroes that meant no more prefabs could be spawned no matter how many attempts were made. Fixes things like junkpiles spawning vastly less often than they're intended to.