From 1deb5a5f3e3dbb716b2ef9fe43e4c79df3518063 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Tue, 5 Oct 2021 13:07:54 +0200 Subject: [PATCH] Added a missing initialization (#6283) Fixes a debug breakpoint if you compiled in debug mode of Microsoft Visual Studio --- src/map/skill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/skill.cpp b/src/map/skill.cpp index 965a46745d8..a694a960fdb 100755 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -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) {