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