Bläddra i källkod

Fix issue found by Sonarcloud

Tomasz Zieliński 1 år sedan
förälder
incheckning
69cfc83be3
1 ändrade filer med 0 tillägg och 3 borttagningar
  1. 0 3
      lib/mapObjects/CRewardableObject.cpp

+ 0 - 3
lib/mapObjects/CRewardableObject.cpp

@@ -142,11 +142,8 @@ void CRewardableObject::onHeroVisit(const CGHeroInstance *h) const
 						break;
 					}
 					case Rewardable::SELECT_ALL: // grant all possible
-					{
-						auto rewards = getAvailableRewards(h, Rewardable::EEventType::EVENT_FIRST_VISIT);
 						grantAllRewardsWthMessage(h, rewards, true);
 						break;
-					}
 				}
 				break;
 			}