TheStarport / FLHook

A Server Improvement for Freelancer.
GNU General Public License v3.0
30 stars 15 forks source link

fix: plugin unloading and sorting should no longer break the hook order #234

Closed Lazrius closed 1 year ago

Lazrius commented 1 year ago

Fixes #233 and fixes #210.

Sorting was causing the index to not be correctly updated and the hooks became out of order. A more robust solution of using shared_ptrs has been implemented to ensure this reference cannot be broken, and data is correctly cleaned upon plugin unload.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication