1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Artifacts will now be handled by pointers.

Assembling & disassembling combos may be buggy, but it's already been before.
This commit is contained in:
DjWarmonger
2010-10-03 07:07:53 +00:00
parent 2c43707661
commit 0f314e106c
18 changed files with 183 additions and 144 deletions

View File

@@ -164,7 +164,7 @@ bool TradeOnMarketplace::applyGh( CGameHandler *gh )
case CREATURE_EXP:
return gh->sacrificeCreatures(m, hero, r1, val);
case ARTIFACT_EXP:
return gh->sacrificeArtifact(m, hero, r1);
return gh->sacrificeArtifact(m, hero, hero->getArtAtPos(r1));
default:
COMPLAIN_AND_RETURN("Unknown exchange mode!");
}