瀏覽代碼

fix uninitialized var

Laserlicht 1 年之前
父節點
當前提交
48173ebfbf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/StartInfo.h

+ 1 - 1
lib/StartInfo.h

@@ -112,7 +112,7 @@ struct DLL_LINKAGE PlayerSettings
 		else
 		{
 			enum EHandicap {NO_HANDICAP, MILD, SEVERE};
-			EHandicap handicapLegacy;
+			EHandicap handicapLegacy = NO_HANDICAP;
 			h & handicapLegacy;
 		}
 		h & name;