1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-03 14:52:11 +02:00
This commit is contained in:
AlexVinS 2016-09-30 02:35:07 +03:00
parent 7cef9529e2
commit 6ddc1c78a2

View File

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