refactor: format project
This commit is contained in:
@@ -278,7 +278,7 @@ TowerPtr World::getTower(const glm::vec2& position) const {
|
||||
|
||||
TowerPtr World::getTowerById(TowerID towerID) {
|
||||
auto it = std::find_if(m_Towers.begin(), m_Towers.end(), [towerID](TowerPtr tower) { return tower->getID() == towerID;});
|
||||
if(it == m_Towers.end()) return nullptr;
|
||||
if (it == m_Towers.end()) return nullptr;
|
||||
return *it;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user