Jump to content

Vulnerability in function Leader:AddFollower


Rickzzs
  • DLC VERSION - IMPORTANT!: Vanilla - NO DLC, Reign of Giants, Shipwrecked, Hamlet Fixed

This function listens "death" event but sometimes entities are just removed, possibly causing duplicate followers when save&load (abigail, chester, etc.).

It is better to listen "onremove" event either in Leader or in Follower or check entity:IsValid() when saving. But I know the logic is very tricky.


Steps to Reproduce

Look at components/leader.lua and components/follower.lua




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