2
0
Эх сурвалжийг харах

Fix uninitialized variables

AlexVinS 11 жил өмнө
parent
commit
9f983c67c0
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      lib/SpellMechanics.h

+ 1 - 1
lib/SpellMechanics.h

@@ -27,7 +27,7 @@ public:
 		int schoolLvl;
 		
 		SpellTargetingContext(const CSpell * s, const CBattleInfoCallback * c, ECastingMode::ECastingMode m, PlayerColor cc, int lvl, BattleHex dest)
-			: cb(c), ti(s,lvl, m), mode(m), destination(dest)
+			: cb(c), ti(s,lvl, m), mode(m), destination(dest), casterColor(cc), schoolLvl(lvl)
 		{};
 		
 	};