Jump to content

burnable.lua has incorrect default value initialization


Rickzzs
  • DLC VERSION - IMPORTANT!: Vanilla - NO DLC, Reign of Giants, Shipwrecked, Hamlet Pending
function Burnable:SpawnFX(immediate)

    if self.nofx then
        return
    end
    
    self:KillFX()
    
    if not self.fxdata then
        self.fxdata = { x = 0, y = 0, z = 0, level=self:GetDefaultFXLevel() }
    end
    

should be at least

    if not self.fxdata then
        self.fxdata = {{ x = 0, y = 0, z = 0, level=self:GetDefaultFXLevel() }}
    end
    

Steps to Reproduce

look at burnable.lua

  • Like 1



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