浏览代码

* possibly fixed problems with crashes on winning resources in creature bank

mateuszb 15 年之前
父节点
当前提交
d3aa5b6820
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      client/CBattleInterface.cpp

+ 2 - 6
client/CBattleInterface.cpp

@@ -1418,6 +1418,8 @@ void CBattleInterface::deactivate()
 
 void CBattleInterface::show(SDL_Surface * to)
 {
+	if(bresult)
+		return;
 	std::map<int, CStack> stacks = curInt->cb->battleGetStacks(); //used in a few places
 	++animCount;
 	if(!to) //"evaluating" to
@@ -1653,12 +1655,6 @@ void CBattleInterface::show(SDL_Surface * to)
 	bConsoleUp->show(to);
 	bConsoleDown->show(to);
 
-	//showing window with result of battle
-	if(resWindow)
-	{
-		resWindow->show(to);
-	}
-
 	//showing in-game console
 	LOCPLINT->cingconsole->show(to);