mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Use toEntity/toXXX methods in Identifier instead VLC objects access
This commit is contained in:
@@ -926,7 +926,7 @@ bool CMapLoaderH3M::loadArtifactToSlot(CGHeroInstance * hero, int slot)
|
||||
if(artifactID == ArtifactID::NONE)
|
||||
return false;
|
||||
|
||||
const Artifact * art = artifactID.toArtifact(VLC->artifacts());
|
||||
const Artifact * art = artifactID.toEntity(VLC->artifacts());
|
||||
|
||||
if(!art)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user