Explorar o código

Fix issue found by Sonarcloud

Tomasz Zieliński hai 1 ano
pai
achega
69cfc83be3
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  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;
 			}