1
0
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:
Ivan Savenko
2023-11-21 17:23:46 +02:00
parent d58ea6f28d
commit 83ca09f483
2 changed files with 3 additions and 6 deletions

View File

@@ -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();