[2.0.6] [quality] Save corruption when defining exactly 255 quality prototypes
Posted: Fri Oct 18, 2024 6:37 pm
The following bloc of code in data stage will corrupt all your saves when loading them. Includes new saves.
Code: Select all
for i = 1, 249 do
local quality = table.deepcopy(data.raw.quality.uncommon)
quality.name = "quality-" .. i
data:extend{quality}
end