mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Version set to 0.8. (not release yet, waiting for a few more fixes)
* fixed possible crash on visiting Obelisk * fixed #394, #391, #395, #373
This commit is contained in:
@@ -195,6 +195,10 @@ CMapHeader::CMapHeader()
|
||||
void CMapHeader::initFromMemory( const unsigned char *bufor, int &i )
|
||||
{
|
||||
version = (Eformat)(readNormalNr(bufor,i)); i+=4; //map version
|
||||
if(version != RoE && version != AB && version != SoD && version != WoG)
|
||||
{
|
||||
throw std::string("Invalid map format!");
|
||||
}
|
||||
areAnyPLayers = readChar(bufor,i); //invalid on some maps
|
||||
height = width = (readNormalNr(bufor,i)); i+=4; // dimensions of map
|
||||
twoLevel = readChar(bufor,i); //if there is underground
|
||||
|
||||
Reference in New Issue
Block a user