Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change creature from checkCreatures from reference to copy #1904

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

dudantas
Copy link
Member

@dudantas dudantas commented Nov 24, 2023

Ensures that the Creature's shared_ptr is handled properly and prevents a crash from occurring due to the creature being prematurely removed.

Resolves #1896

@Schiffers
Copy link
Contributor

realmente, esse PR de acordo com meus testes fez alguma diferença, as vezes estava tendo crashs aleatórios somente ao abrir o canary-sln, ja corria matar algum bicho pra testar quest e já dava crash, agora não está dando crash (além claro dos que eu mesmo bugo o ot com restart)

Copy link

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

@dudantas dudantas merged commit 88d04c6 into main Nov 27, 2023
37 checks passed
@dudantas dudantas deleted the dudantas/fix-crash-related-to-check-creatures branch November 27, 2023 21:09
@dudantas dudantas mentioned this pull request Nov 27, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible bug that causes crash with onPrepareDeath? I don't know.
4 participants