1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

Reverted r1811, r1812, r1813

This commit is contained in:
Michał W. Urbańczyk
2010-10-24 11:23:43 +00:00
parent 8ac954a7f9
commit aa131bbf15
23 changed files with 199 additions and 395 deletions

View File

@ -1938,7 +1938,7 @@ void CGameState::init( StartInfo * si, ui32 checksum, int Seed )
CGHeroInstance *hero = k->second.heroes[0];
std::vector<ui16>::iterator slot = vstd::findFirstNot (hero->artifWorn, toGive->possibleSlots);
if(slot != toGive->possibleSlots.end())
VLC->arth->equipArtifact(hero->artifWorn, *slot, toGive);
VLC->arth->equipArtifact(hero->artifWorn, *slot, toGive->id);
else
hero->giveArtifact(toGive->id);
}