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

Bug fix related to monster spawning #2374

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

FluffyQuack
Copy link
Contributor

@FluffyQuack FluffyQuack commented Jul 13, 2021

This fixes the bug mentioned here: #2280 (reply in thread)

The cause was the refactor to DeleteMonster() here: 71241d1#diff-d46585089d315b53630b1035442b3d490d7b422cb05ceee76cf9041de3e39179R1235

With the two values not swapped, then values in ActiveMonsters after ActiveMonsterCount could have the same id as alive monsters, thus monsters being spawned (ie, by the skeleton king) could overwrite alive monsters and all kinds of funky stuff happened.

@AJenbo
Copy link
Member

AJenbo commented Jul 13, 2021

Thanks for tracking this down 👍

@AJenbo AJenbo merged commit c4a96bc into diasurgical:master Jul 13, 2021
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