浏览代码

Fix issue found by Sonarcloud

Tomasz Zieliński 1 年之前
父节点
当前提交
69cfc83be3
共有 1 个文件被更改,包括 0 次插入3 次删除
  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;
 						break;
 					}
 					}
 					case Rewardable::SELECT_ALL: // grant all possible
 					case Rewardable::SELECT_ALL: // grant all possible
-					{
-						auto rewards = getAvailableRewards(h, Rewardable::EEventType::EVENT_FIRST_VISIT);
 						grantAllRewardsWthMessage(h, rewards, true);
 						grantAllRewardsWthMessage(h, rewards, true);
 						break;
 						break;
-					}
 				}
 				}
 				break;
 				break;
 			}
 			}