WAC Aircraft persistent error

Hey,

I’m getting an error each time a WAC Helicopter is deleted on my server.
I’ve tried re-installing the addon, and uninstalling addons one by one etc… but the error persists.


[ERROR] addons/wac aircraft/lua/entities/wac_hc_base/cl_init.lua:182: Tried to use invalid object (type CLuaEmitter) (Object was NULL or not of the right type)
  1. Finish - [C]:-1
   2. unknown - addons/wac aircraft/lua/entities/wac_hc_base/cl_init.lua:182


And here’s the troublemaking code snippet:



function ENT:OnRemove()
	for _,s in pairs(self.sounds) do
		s:Stop()
	end
	for _, t in pairs(self.weaponAttachments) do
		t.model:Remove()
	end
	self.Emitter:Finish()
end


(full code here)
The error relates to a lua emitter- and causes lag each time a helicopter is deleted.
Any help would be appreciated.

ask the addon creator

That’s the first thing I always do…
Thing is the creators of big addons like WAC are inundated with requests to fix things and rarely are receptive.

Solved.