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:
parent
87647cd02a
commit
f997241da1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user