Jump to content

SetTechBonus can't find classified


R7k
  • Fixed

I got this error  [string "scripts/components/builder_replica.lua"]:58: attempt to index field 'classified' (a nil value)"

when trying to change some tech bonus value on a removed prefab. It crashed the game. Please add a self.classified nil value test in function Builder:SetTechBonus at builder_replica.lua to make it more stable. Thanks.


Steps to Reproduce

function aaa(inst) if inst and inst.components.builder then inst.components.builder.ancient_bonus = 1 end end

inst:Remove()

aaa(inst)




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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