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

This subforum contains all the issues which we already resolved.
Post Reply
sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

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

Post 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`?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post by Klonan »

Sure, it was meant to be type

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

Post Reply

Return to “Resolved Problems and Bugs”