mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-03 14:52:11 +02:00
This commit is contained in:
parent
7cef9529e2
commit
6ddc1c78a2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user