Skip to content

Commit

Permalink
Added a missing initialization (#6283)
Browse files Browse the repository at this point in the history
Fixes a debug breakpoint if you compiled in debug mode of Microsoft Visual Studio
  • Loading branch information
Lemongrass3110 committed Oct 5, 2021
1 parent b56c9b7 commit 1deb5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/skill.cpp
Expand Up @@ -17870,7 +17870,7 @@ int skill_clear_group(block_list *bl, uint8 flag)
return 0;

size_t count = 0;
bool deleted;
bool deleted = false;

// The after loop statement might look stupid, but this prevents iteration problems, if an entry was deleted
for (auto it = ud->skillunits.begin(); it != ud->skillunits.end(); (deleted ? it = ud->skillunits.begin() : it++), deleted = false) {
Expand Down

0 comments on commit 1deb5a5

Please sign in to comment.