1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

* small bugfix

This commit is contained in:
mateuszb
2007-08-24 15:00:13 +00:00
parent dc863f459c
commit ad68aa3dea
2 changed files with 20 additions and 10 deletions

View File

@ -130,7 +130,7 @@ CMapHeader::CMapHeader(unsigned char *map)
{
this->vicConDetails = new VicCon0();
((VicCon0*)this->vicConDetails)->ArtifactID = map[i+2];
nr=2;
nr=(version==RoE ? 1 : 2);
break;
}
case gatherTroop:
@ -139,8 +139,8 @@ CMapHeader::CMapHeader(unsigned char *map)
int temp1 = map[i+2];
int temp2 = map[i+3];
((VicCon1*)this->vicConDetails)->monsterID = map[i+2];
((VicCon1*)this->vicConDetails)->neededQuantity=readNormalNr(map, i+4);
nr=6;
((VicCon1*)this->vicConDetails)->neededQuantity=readNormalNr(map, i+(version==RoE ? 3 : 4));
nr=(version==RoE ? 5 : 6);
break;
}
case gatherResource: