From 2827861edf4b79ba389135407c0e971174283ffb Mon Sep 17 00:00:00 2001 From: expwnent Date: Fri, 27 Jun 2014 06:09:01 -0400 Subject: [PATCH] Fixed minor error in growthbug. --- scripts/fix/growthbug.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/fix/growthbug.lua b/scripts/fix/growthbug.lua index 85e707d99..368cfdc6a 100644 --- a/scripts/fix/growthbug.lua +++ b/scripts/fix/growthbug.lua @@ -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.") +