1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

added toEntity overload that accepts generic Services class

This commit is contained in:
Ivan Savenko
2023-11-04 17:04:53 +02:00
parent 04aeea9b68
commit 5487f07d3b
11 changed files with 43 additions and 23 deletions

View File

@@ -926,7 +926,7 @@ bool CMapLoaderH3M::loadArtifactToSlot(CGHeroInstance * hero, int slot)
if(artifactID == ArtifactID::NONE)
return false;
const Artifact * art = artifactID.toEntity(VLC->artifacts());
const Artifact * art = artifactID.toEntity(VLC);
if(!art)
{