1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Better fix for allowed heroes in h3m - allow all heroes from mods

This commit is contained in:
Ivan Savenko
2023-11-22 17:09:42 +02:00
parent f643fff5eb
commit e979fb7056
4 changed files with 11 additions and 6 deletions

View File

@@ -325,8 +325,6 @@ void MapReaderH3M::readBitmaskSkills(std::set<SecondarySkill> & dest, bool inver
template<class Identifier>
void MapReaderH3M::readBitmask(std::set<Identifier> & dest, int bytesToRead, int objectsToRead, bool invert)
{
dest.clear();
for(int byte = 0; byte < bytesToRead; ++byte)
{
const ui8 mask = reader->readUInt8();
@@ -343,6 +341,8 @@ void MapReaderH3M::readBitmask(std::set<Identifier> & dest, int bytesToRead, int
if (result)
dest.insert(vcmiID);
else
dest.erase(vcmiID);
}
}
}