Pārlūkot izejas kodu

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

AlexVinS 9 gadi atpakaļ
vecāks
revīzija
6ddc1c78a2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;