mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge pull request #2791 from Nordsoft91/fix-2790
Fix for random dwellings
This commit is contained in:
@@ -1273,8 +1273,8 @@ CGObjectInstance * CMapLoaderH3M::readDwellingRandom(const int3 & mapPosition, s
|
||||
//216 and 218
|
||||
if(auto * lvlSpec = dynamic_cast<CCreGenLeveledInfo *>(spec))
|
||||
{
|
||||
lvlSpec->minLevel = std::max(reader->readUInt8(), static_cast<ui8>(1));
|
||||
lvlSpec->maxLevel = std::min(reader->readUInt8(), static_cast<ui8>(7));
|
||||
lvlSpec->minLevel = std::max(reader->readUInt8(), static_cast<ui8>(0)) + 1;
|
||||
lvlSpec->maxLevel = std::min(reader->readUInt8(), static_cast<ui8>(6)) + 1;
|
||||
}
|
||||
object->info = spec;
|
||||
return object;
|
||||
|
||||
Reference in New Issue
Block a user