Modded tesla turret mk1 [https://mods.factorio.com/mod/upgraded-tesla-turrets] causing error when gaining rank
Error while running event HeroTurretsReduxFork::on_entity_died (ID 4)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__HeroTurretsReduxFork/prototypes/scripts/turrets.lua:362: in function 'local_replace_turret'
HeroTurretsReduxFork/prototypes/scripts/turrets.lua:730: in function 'v'
HeroTurretsReduxFork/control.lua:392: in function 'local_on_standard_entity_event'
HeroTurretsReduxFork/control.lua:424: in function <HeroTurretsReduxFork/control.lua:423>
P.S. Other turret types (mk+) as gun or laser aren't causing any problems ranking up to supreme commander