Explorar o código

And another one. I'm sloppy today :(

Michał W. Urbańczyk %!s(int64=12) %!d(string=hai) anos
pai
achega
dca1f709a9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
 }