mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fixes for multiple new issues from Sonar
This commit is contained in:
@@ -331,7 +331,7 @@ void CTownHandler::loadBuilding(CTown * town, const std::string & stringID, cons
|
||||
|
||||
if(!source["mapObjectLikeBonuses"].isNull())
|
||||
{
|
||||
VLC->identifiers()->requestIdentifierOptional("object", source["mapObjectLikeBonuses"], [=](si32 identifier)
|
||||
VLC->identifiers()->requestIdentifierOptional("object", source["mapObjectLikeBonuses"], [ret](si32 identifier)
|
||||
{
|
||||
ret->mapObjectLikeBonuses = MapObjectID(identifier);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user