瀏覽代碼

Fixed http://bugs.vcmi.eu/view.php?id=2530

AlexVinS 9 年之前
父節點
當前提交
6ddc1c78a2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/battle/CBattleInterface.cpp

+ 1 - 1
client/battle/CBattleInterface.cpp

@@ -2658,7 +2658,7 @@ void CBattleInterface::obstaclePlaced(const CObstacleInstance & oi)
 		return;
 	}
 
-	if(graphics->battleACToDef[effectID].empty())
+	if(effectID >= 0 && graphics->battleACToDef[effectID].empty())
 	{
 		logGlobal->errorStream() << "Cannot find def for effect type " << effectID;
 		return;