瀏覽代碼

Added a missing initialization (#6283)

Fixes a debug breakpoint if you compiled in debug mode of Microsoft Visual Studio
Lemongrass3110 3 年之前
父節點
當前提交
1deb5a5f3e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {