Browse Source

Fix issue found by Sonarcloud

Tomasz Zieliński 1 year ago
parent
commit
69cfc83be3
1 changed files with 0 additions and 3 deletions
  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;
 			}