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