2
0
Эх сурвалжийг харах

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

AlexVinS 9 жил өмнө
parent
commit
6ddc1c78a2

+ 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;