opentibiabr / canary

Canary Server 13.x for OpenTibia community.
https://docs.opentibiabr.com/
GNU General Public License v2.0
384 stars 637 forks source link

improve: prevent crash in checkCreatures #3073

Closed mehah closed 2 weeks ago

mehah commented 2 weeks ago

apparently the creature can be destroyed while it is running in checkCreatures, so let's increase the counter to ensure it still exists.

note: I had a rare crash while doing some testing.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud