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

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

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

Post 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

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

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

Post by HanziQ »

Fixed for 0.12.25

Post Reply

Return to “Resolved Problems and Bugs”