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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user