1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix old savegame corruption in PR 301

This commit is contained in:
AlexVinS 2017-06-14 01:43:26 +03:00
parent 872c2363be
commit 648b122b10

View File

@ -130,7 +130,7 @@ void CArtifact::addNewBonus(const std::shared_ptr<Bonus>& b)
void CArtifact::fillWarMachine()
{
switch (id)
switch(id)
{
case ArtifactID::CATAPULT:
warMachine = CreatureID::CATAPULT;
@ -144,8 +144,10 @@ void CArtifact::fillWarMachine()
case ArtifactID::AMMO_CART:
warMachine = CreatureID::AMMO_CART;
break;
default:
warMachine = CreatureID::NONE;
break;
}
warMachine = CreatureID::NONE; //this artifact is not a creature
}
void CGrowingArtifact::levelUpArtifact (CArtifactInstance * art)