소스 검색

CStack::prepareAttacked: fix for REBIRTH bonus after merge

Arseniy Shestakov 7 년 전
부모
커밋
15c8b192b4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/CStack.cpp

+ 1 - 1
lib/CStack.cpp

@@ -210,7 +210,7 @@ void CStack::prepareAttacked(BattleStackAttacked & bsa, vstd::RNG & rand, std::s
 
 
 		if(resurrectValue > 0 && customState->canCast()) //there must be casts left
 		if(resurrectValue > 0 && customState->canCast()) //there must be casts left
 		{
 		{
-			double resurrectFactor = resurrectValue / 100;
+			double resurrectFactor = resurrectValue / 100.0;
 
 
 			auto baseAmount = customState->unitBaseAmount();
 			auto baseAmount = customState->unitBaseAmount();