Skip to content

Commit

Permalink
compile error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ntut-Tu committed Jun 16, 2024
1 parent d77e25f commit 3e8270d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/Mechanics/UnitManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class UnitManager : public Player {
}


int updateCurrency();
void updateCurrency();

void spawnToWayPoint(UnitType unit, HouseType house);
void spawn(UnitType unit, HouseType house, glm::vec2 cellPos);
Expand Down
2 changes: 1 addition & 1 deletion src/Mechanics/UnitManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void UnitManager::Update() {
m_StructureManager->SelectingBuildSite();
}

int UnitManager::updateCurrency() {
void UnitManager::updateCurrency() {
for (auto i :
m_StructureManager->getStructureArray()->getBuiltStructureArray()) {
if (std::dynamic_pointer_cast<OreRefinery>(i)) {
Expand Down

0 comments on commit 3e8270d

Please sign in to comment.