Skip to content

Check itr in DeleteCharacterPetById#3222

Open
Wall-core wants to merge 1 commit intovmangos:developmentfrom
Wall-core:DeletePet-crashfix
Open

Check itr in DeleteCharacterPetById#3222
Wall-core wants to merge 1 commit intovmangos:developmentfrom
Wall-core:DeletePet-crashfix

Conversation

@Wall-core
Copy link
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
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
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

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