mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
More bugfixing:
- Fixed compile in VCAI (precompiled headers should not include VCMI headers) - Fixed crash on visiting observatories, including shroud of darkness
This commit is contained in:
@@ -1061,7 +1061,7 @@ void CGObservatory::onHeroVisit( const CGHeroInstance * h ) const
|
||||
case Obj::COVER_OF_DARKNESS:
|
||||
{
|
||||
iw.text.addTxt (MetaString::ADVOB_TXT, 31);
|
||||
for (auto player : cb->gameState()->players)
|
||||
for (auto & player : cb->gameState()->players)
|
||||
{
|
||||
if (cb->getPlayerStatus(player.first) == EPlayerStatus::INGAME &&
|
||||
cb->getPlayerRelations(player.first, h->tempOwner) == PlayerRelations::ENEMIES)
|
||||
|
||||
Reference in New Issue
Block a user