mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
* another fix of Pnadora's Box handling
This commit is contained in:
parent
9819bc86e2
commit
ee2a63f26e
@ -1841,10 +1841,14 @@ 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;
|
||||
if(map.version > RoE)
|
||||
i++;
|
||||
|
||||
{
|
||||
spec->artifacts.push_back(&(CGameInfo::mainObj->arth->artifacts[readNormalNr(i, 2)])); i+=2;
|
||||
}
|
||||
else
|
||||
{
|
||||
spec->artifacts.push_back(&(CGameInfo::mainObj->arth->artifacts[readNormalNr(i, 1)])); i+=1;
|
||||
}
|
||||
}
|
||||
int gspel = readNormalNr(i, 1); ++i; //number of gained spells
|
||||
for(int oo = 0; oo<gspel; ++oo)
|
||||
|
Loading…
Reference in New Issue
Block a user