Explorar o código

Added a missing initialization (#6283)

Fixes a debug breakpoint if you compiled in debug mode of Microsoft Visual Studio
Lemongrass3110 %!s(int64=3) %!d(string=hai) anos
pai
achega
1deb5a5f3e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/map/skill.cpp

+ 1 - 1
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) {