PRIORITY CRITICAL: Fix infinite loop in carp_migration.dm, line 44

This commit is contained in:
atermonera
2020-04-10 16:13:43 -07:00
parent c81f9de1ac
commit e8c70a9f63
+1 -3
View File
@@ -40,12 +40,10 @@
if(spawn_locations.len) // Okay we've got landmarks, lets use those!
shuffle_inplace(spawn_locations)
num_groups = min(num_groups, spawn_locations.len)
var/i = 1
while (i <= num_groups)
for (var/i = 0, i <= num_groups, i++)
var/group_size = rand(group_size_min, group_size_max)
for (var/j = 0, j < group_size, j++)
spawn_one_carp(spawn_locations[i])
i++
return
// Okay we did *not* have any landmarks, so lets do our best!