mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Restore save compatibility with 1.6
This commit is contained in:
@@ -2459,15 +2459,13 @@ ArtSlotInfo::ArtSlotInfo(const CArtifactInstance * artifact, bool locked)
|
||||
|
||||
const CArtifactInstance * ArtSlotInfo::getArt() const
|
||||
{
|
||||
if(locked || !artifactID.hasValue())
|
||||
if(!artifactID.hasValue())
|
||||
return nullptr;
|
||||
return cb->getArtInstance(artifactID);
|
||||
}
|
||||
|
||||
ArtifactInstanceID ArtSlotInfo::getID() const
|
||||
{
|
||||
if(locked)
|
||||
return {};
|
||||
return artifactID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user