mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-14 02:33:51 +02:00
Fix old savegame corruption in PR 301
This commit is contained in:
parent
872c2363be
commit
648b122b10
@ -130,7 +130,7 @@ void CArtifact::addNewBonus(const std::shared_ptr<Bonus>& b)
|
|||||||
|
|
||||||
void CArtifact::fillWarMachine()
|
void CArtifact::fillWarMachine()
|
||||||
{
|
{
|
||||||
switch (id)
|
switch(id)
|
||||||
{
|
{
|
||||||
case ArtifactID::CATAPULT:
|
case ArtifactID::CATAPULT:
|
||||||
warMachine = CreatureID::CATAPULT;
|
warMachine = CreatureID::CATAPULT;
|
||||||
@ -144,8 +144,10 @@ void CArtifact::fillWarMachine()
|
|||||||
case ArtifactID::AMMO_CART:
|
case ArtifactID::AMMO_CART:
|
||||||
warMachine = CreatureID::AMMO_CART;
|
warMachine = CreatureID::AMMO_CART;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
warMachine = CreatureID::NONE;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
warMachine = CreatureID::NONE; //this artifact is not a creature
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGrowingArtifact::levelUpArtifact (CArtifactInstance * art)
|
void CGrowingArtifact::levelUpArtifact (CArtifactInstance * art)
|
||||||
|
Loading…
Reference in New Issue
Block a user