1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

Fix build

This commit is contained in:
Ivan Savenko
2025-02-28 14:59:00 +00:00
parent 35fc7f7f03
commit a3dbb5748c

View File

@ -151,7 +151,7 @@ void CBonusTypeHandler::loadItem(const JsonNode & source, CBonusType & dest, con
for (const auto & additionalIcon : graphics["subtypeIcons"].Struct())
{
auto path = ImagePath::fromJson(additionalIcon.second);
VLC->identifiers()->requestIdentifier(additionalIcon.second.getModScope(), additionalIcon.first, [&dest, path](int32_t index)
LIBRARY->identifiers()->requestIdentifier(additionalIcon.second.getModScope(), additionalIcon.first, [&dest, path](int32_t index)
{
dest.subtypeIcons[index] = path;
});