mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix issues detected by Sonar
This commit is contained in:
@ -631,7 +631,7 @@ void CGArtifact::pickRandomObject(vstd::RNG & rand)
|
||||
switch(ID.toEnum())
|
||||
{
|
||||
case MapObjectID::RANDOM_ART:
|
||||
subID = cb->gameState().pickRandomArtifact(rand, EArtifactClass::ART_TREASURE | EArtifactClass::ART_MINOR | EArtifactClass::ART_MAJOR | EArtifactClass::ART_RELIC);
|
||||
subID = cb->gameState().pickRandomArtifact(rand, std::nullopt);
|
||||
break;
|
||||
case MapObjectID::RANDOM_TREASURE_ART:
|
||||
subID = cb->gameState().pickRandomArtifact(rand, EArtifactClass::ART_TREASURE);
|
||||
|
Reference in New Issue
Block a user