1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Possible fix for crash from Android crash reporting

This commit is contained in:
Ivan Savenko
2023-08-05 12:49:38 +03:00
parent dd17896082
commit 041236837b

View File

@@ -770,7 +770,7 @@ std::vector<bool> CHeroHandler::getDefaultAllowed() const
for(const CHero * hero : objects)
{
allowedHeroes.push_back(!hero->special);
allowedHeroes.push_back(hero && !hero->special);
}
return allowedHeroes;