mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
@@ -418,10 +418,6 @@ shared_ptr<const CObstacleInstance> CBattleInfoCallback::battleGetObstacleOnPos(
|
||||
if(!gs->curB)
|
||||
return NULL;
|
||||
|
||||
//unused? causes crash in forts without moat
|
||||
//auto ptr = gs->curB->obstacles.front();
|
||||
//shared_ptr<const CObstacleInstance> nastala = ptr;
|
||||
|
||||
BOOST_FOREACH(auto &obs, battleGetAllObstacles())
|
||||
{
|
||||
if(vstd::contains(obs->getBlockedTiles(), tile)
|
||||
|
||||
Reference in New Issue
Block a user