Skip to content

Fix: follower reference counter#5079

Closed
NRH-AA wants to merge 12 commits intootland:masterfrom
NRH-AA:Clean_Follower_Reference_Counter
Closed

Fix: follower reference counter#5079
NRH-AA wants to merge 12 commits intootland:masterfrom
NRH-AA:Clean_Follower_Reference_Counter

Conversation

@NRH-AA
Copy link
Contributor

@NRH-AA NRH-AA commented Jan 14, 2026

Pull Request Prelude

Changes Proposed

Modify when we incrementReferenceCounter and decrement for followers.

Issues addressed:
Possibly #4961 and fix crashed @MillhioreBT mentioned.

How to test:
The best way is to test with one monster and std::cout the monsters references count. It should +-1 as you add and remove it as a follower. You can run far away, log out, ect. It should log a +-1. To test crashes just run out, kill, and remove multiple monsters.

@hexbranch
Copy link

Hi, I found a critical optimization bug in your pathfinding implementation.
Could you please contact me on Discord or by e-mail so I can share details?
Thanks.

@NRH-AA
Copy link
Contributor Author

NRH-AA commented Jan 14, 2026

Hi, I found a critical optimization bug in your pathfinding implementation. Could you please contact me on Discord or by e-mail so I can share details? Thanks.

bot

@hexbranch
Copy link

Hi, I found a critical optimization bug in your pathfinding implementation. Could you please contact me on Discord or by e-mail so I can share details? Thanks.

bot

I already contacted you via Messenger, but the message may be in your spam requests.

@NRH-AA
Copy link
Contributor Author

NRH-AA commented Jan 15, 2026

I found the last bug now that references are done correctly. I will push the update soon.

@NRH-AA NRH-AA closed this by deleting the head repository Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants