Added a missing initialization (#6283)

Fixes a debug breakpoint if you compiled in debug mode of Microsoft Visual Studio
This commit is contained in:
Lemongrass3110
2021-10-05 13:07:54 +02:00
committed by GitHub
parent b56c9b7efa
commit 1deb5a5f3e

View File

@@ -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) {