Page 1 of 1

[0.12.23] [Martin] Access violation - no RTTI data!

Posted: Wed Feb 24, 2016 2:31 pm
by theRustyKnife
I have the following piece of code in my mod:

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)
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

Re: [0.12.23] [Martin] Access violation - no RTTI data!

Posted: Wed Mar 02, 2016 10:51 am
by HanziQ
Fixed for 0.12.25