Jump to content

poisonable has incorrect default value initialisation


_zwb
  • DLC VERSION - IMPORTANT!: Shipwrecked, Hamlet Pending

similar to the post above, in components/poisonable.lua:

function Poisonable:SpawnFX()
	self:KillFX()
	
	if not self.fxdata then
		self.fxdata = { prefab="poisonbubble", x = 0, y = 0, z = 0, level=self:GetFXLevel() }
	end
  ...
end

it should be

self.fxdata = {{prefab = "poisonbubble", x = 0, y = 0, z = 0, level = self:GetFXLevel()}}

 


Steps to Reproduce

The above




User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...