Error while running event AudricSan_Realistic_Electric_Trains::on_pre_player_mined_item (ID 11)
...ricSan_Realistic_Electric_Trains__/logic/rail_search.lua:251: attempt to index local 'target_wire' (a nil value)
stack traceback:
...ricSan_Realistic_Electric_Trains__/logic/rail_search.lua:251: in function <...ricSan_Realistic_Electric_Trains__/logic/rail_search.lua:174>
(...tail calls...)
...cSan_Realistic_Electric_Trains__/logic/overhead_line.lua:251: in function 'uninstall_pole'
...n_Realistic_Electric_Trains__/logic/events/on_remove.lua:9: in function 'destroy_pole'
...n_Realistic_Electric_Trains__/logic/events/on_remove.lua:54: in function <...n_Realistic_Electric_Trains__/logic/events/on_remove.lua:46>