Parcourir la source

And another one. I'm sloppy today :(

Michał W. Urbańczyk il y a 12 ans
Parent
commit
dca1f709a9
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      lib/CBattleCallback.cpp

+ 2 - 2
lib/CBattleCallback.cpp

@@ -2295,9 +2295,9 @@ boost::optional<int> CBattleInfoCallback::battleIsFinished() const
 	if(!hasStack[0] && !hasStack[1])
 		return 2;
 	if(!hasStack[1])
-		return 1;
-	if(!hasStack[0])
 		return 0;
+	if(!hasStack[0])
+		return 1;
 	return boost::none;
 }