Page 1 of 1

[Klonan] [1.0.0] Uninitialized global used in error message in wave defense tech upgrades

Posted: Mon Aug 31, 2020 2:26 am
by sparr
base/scenarios/wave-defense/wave_defense_upgrades.lua

Code: Select all

local to_effect = function(effects)
...
    else error(name.." - This tech has no relevant upgrade effect") end
name is not defined here (unless something else is putting it in the global scope? I know some of the base scripts do that), maybe it should be `type`?

Re: [Klonan] [1.0.0] Uninitialized global used in error message in wave defense tech upgrades

Posted: Mon Aug 31, 2020 12:24 pm
by Klonan
Sure, it was meant to be type

It was a fallback error anyway, if saw it then you have bigger problems