1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Throw exception on loading not supported hota duel/arena maps

This commit is contained in:
Ivan Savenko 2023-04-10 20:11:19 +03:00
parent 87647cd02a
commit f997241da1

View File

@ -131,7 +131,10 @@ void CMapLoaderH3M::readHeader()
//TODO: HotA
bool isDuelMap = reader->readBool();
if (isDuelMap)
{
logGlobal->warn("Map '%s': Duel maps are not supported!", mapName);
throw std::runtime_error("Invalid map format!");
}
}
if(hotaVersion > 1)