Fixed minor error in growthbug.

develop
expwnent 2014-06-27 06:09:01 -04:00
parent 352e72b992
commit 2827861edf
1 changed files with 2 additions and 1 deletions

@ -16,7 +16,7 @@ if args[1] ~= nil then
end
local count = 0
for _,unit in ipairs(df.world.units.all) do
for _,unit in ipairs(df.global.world.units.all) do
local offset = unit.relations.birth_time % 10;
if offset ~= 0 then
count = count+1
@ -24,3 +24,4 @@ for _,unit in ipairs(df.world.units.all) do
end
end
print("Fixed growth bug for "..count.." units.")