Explorar el Código

fix uninitialized var

Laserlicht hace 1 año
padre
commit
48173ebfbf
Se han modificado 1 ficheros con 1 adiciones y 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;