Explorar o código

fix uninitialized var

Laserlicht hai 1 ano
pai
achega
48173ebfbf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;