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:
parent
872c2363be
commit
648b122b10
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user