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

Last bugfix

This commit is contained in:
Michał W. Urbańczyk 2008-02-03 07:09:21 +00:00
parent 10c67209fb
commit 84b10c0cd9

View File

@ -2031,7 +2031,10 @@ void CAmbarCendamo::deh3m()
int gart = readNormalNr(i, 1); ++i; //number of gained artifacts
for(int oo = 0; oo<gart; ++oo)
{
spec->artifacts.push_back(&(CGameInfo::mainObj->arth->artifacts[readNormalNr(i, 2)])); i+=2;
spec->artifacts.push_back(&(CGameInfo::mainObj->arth->artifacts[readNormalNr(i, 2)])); ++i;
if(map.version > RoE)
i++;
}
int gspel = readNormalNr(i, 1); ++i; //number of gained spells
for(int oo = 0; oo<gspel; ++oo)
@ -2040,9 +2043,7 @@ void CAmbarCendamo::deh3m()
}
int gcre = readNormalNr(i, 1); ++i; //number of gained creatures
spec->creatures = readCreatureSet(i, gcre); i+=4*gcre;
i+=7;
if(map.version > RoE)
i++;
i+=8;
nobj->info = spec;
///////end of copied fragment
break;