]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Cleanup more follower leaks (#20902)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sat, 14 Oct 2023 18:02:36 +0000 (05:02 +1100)
committerGitHub <noreply@github.com>
Sat, 14 Oct 2023 18:02:36 +0000 (14:02 -0400)
commitaac17c33210b15d144551cb677ed0bee94b55afd
tree75cf02633dd196b9153deb1363bda57253f3ff3a
parent8555a8e723f812ef34d29957ba1f3caa64b1d721
Cleanup more follower leaks (#20902)

* Cleanup more follower leaks

Rather than check stop everywhere we'll just check it on start and cleanup the old following. If someone were already following and followed something new the FollowedComponent would never get cleaned up and would never have its ref to the entity removed.

* Don't cause archetype changes
Content.Shared/Follower/FollowerSystem.cs