Repair Turret

by Klonan

Adds Repair Turrets

Content
27 days ago
0.17 - 2.0
101K
Combat Logistic network

b App crash

4 years ago
(updated 4 years ago)

Hello,
In repair_turret.lua around line 905 you should check for entities not nil before using next. Quick dirty fix hereafter:

if turret_data and turret_data.targets and not next(turret_data.targets) then
return true
end

if turret_data and turret_data.low_priority_queue and not next(turret_data.low_priority_queue) then
return true
end

if turret_data and turret_data.checked_queue and not next(turret_data.checked_queue) then
return true
end

4 years ago

thanks, I fixed it

New response