mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix warnings
This commit is contained in:
@@ -250,7 +250,7 @@ void CHeroArtPlace::setArtifact(const CArtifactInstance * art)
|
|||||||
|
|
||||||
void CHeroArtPlace::addCombinedArtInfo(std::map<const CArtifact*, int> & arts)
|
void CHeroArtPlace::addCombinedArtInfo(std::map<const CArtifact*, int> & arts)
|
||||||
{
|
{
|
||||||
for(const auto combinedArt : arts)
|
for(const auto & combinedArt : arts)
|
||||||
{
|
{
|
||||||
std::string artList;
|
std::string artList;
|
||||||
text += "\n\n";
|
text += "\n\n";
|
||||||
|
@@ -99,7 +99,7 @@ void CArtifactsOfHeroAltar::deleteFromVisible(const CArtifactInstance * artInst)
|
|||||||
{
|
{
|
||||||
if(artInst->canBeDisassembled())
|
if(artInst->canBeDisassembled())
|
||||||
{
|
{
|
||||||
for(const auto part : dynamic_cast<const CCombinedArtifactInstance*>(artInst)->constituentsInfo)
|
for(const auto & part : dynamic_cast<const CCombinedArtifactInstance*>(artInst)->constituentsInfo)
|
||||||
{
|
{
|
||||||
if(part.slot != ArtifactPosition::PRE_FIRST)
|
if(part.slot != ArtifactPosition::PRE_FIRST)
|
||||||
getArtPlace(part.slot)->setArtifact(nullptr);
|
getArtPlace(part.slot)->setArtifact(nullptr);
|
||||||
|
Reference in New Issue
Block a user