Skip to content

Check itr in DeleteCharacterPetById#3222

Merged
ratkosrb merged 1 commit intovmangos:developmentfrom
Wall-core:DeletePet-crashfix
Mar 10, 2026
Merged

Check itr in DeleteCharacterPetById#3222
ratkosrb merged 1 commit intovmangos:developmentfrom
Wall-core:DeletePet-crashfix

Conversation

@Wall-core
Copy link
Copy Markdown
Contributor

It should never be invalid, but ensure it is so we don't crash.

It should never be invalid, but ensure it is so we don't crash.
@Gamemechanicwow
Copy link
Copy Markdown
Contributor

i have a slight issue with this type of fix. A crash would indicate that there is a bug somewhere else in the code - and this just masks the real issue.

@Wall-core
Copy link
Copy Markdown
Contributor Author

Yeah it should never be invalid at this part in the code, but if the two maps somehow desynced, it would crash if this were ever called. It's just more proper to actually check both

@ratkosrb ratkosrb merged commit 55f747a into vmangos:development Mar 10, 2026
3 checks passed
ratkosrb pushed a commit that referenced this pull request Apr 2, 2026
It should never be invalid, but ensure it is so we don't crash.
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.

3 participants