diff --git a/common.eai b/common.eai index ab9f08c5a..8dbda028b 100644 --- a/common.eai +++ b/common.eai @@ -11935,9 +11935,9 @@ function FormGroupAM takes integer seconds returns nothing set desire = attack_max[index] set count = TownCountDone(unitid) - if wood > minimum_peon_wood then + if GetWood() > minimum_peon_wood then set take_all_ghouls_along = true - elseif wood < minimum_peon_wood then + elseif GetWood() < minimum_peon_wood then set take_all_ghouls_along = false endif