mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix loading of allowed heroes from h3m maps
This commit is contained in:
@@ -325,6 +325,8 @@ 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();
|
||||
|
||||
Reference in New Issue
Block a user