fix ec+pamk3

This commit is contained in:
Brevven 2022-02-10 20:03:01 -08:00
parent 351f31581d
commit 89a07a8a70
4 changed files with 9 additions and 2 deletions

View file

@ -70,7 +70,7 @@ end
function util.remove_prerequisite(technology_name, prerequisite)
local technology = data.raw.technology[technology_name]
local index = -1
if technology and data.raw.technology[prerequisite] then
if technology then
for i, prereq in pairs(technology.prerequisites) do
if prereq == prerequisite then
index = i