Ver código fonte

fix uninitialized var

Laserlicht 1 ano atrás
pai
commit
48173ebfbf
1 arquivos alterados com 1 adições e 1 exclusões
  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;