[0.12.23] [Martin] Access violation - no RTTI data!
Posted: Wed Feb 24, 2016 2:31 pm
I have the following piece of code in my mod:
When I build some chain signals they get destroyed as expected but after a couple (seems like a random number) the game throws an error saying: Access violation - no RTTI data! (it's actually labeled as notice).
It doesn't happen without the entity.destroy() call, also It seems like it's only happening with chain signal type entities, even regular signals seem to be fine, but I haven't tested it too deeply.
No other mods were used.
TRK
Code: Select all
require "defines"
function on_built(event)
if event.created_entity.name == "rail-chain-signal" then
event.created_entity.destroy()
end
end
script.on_event(defines.events.on_built_entity, on_built)
It doesn't happen without the entity.destroy() call, also It seems like it's only happening with chain signal type entities, even regular signals seem to be fine, but I haven't tested it too deeply.
No other mods were used.
TRK