Skip to content
Snippets Groups Projects
Commit b5f1013e authored by Frederik's avatar Frederik
Browse files

Fix bug introduced by last commit

parent ec2aad3a
No related branches found
No related tags found
No related merge requests found
......@@ -724,7 +724,7 @@ void Level::handleSelectingEvents(Engine& engine, SDL_Event& event)
if (m_units.at(m_selectedUnit).getFaction() == m_turnQ.front().getFaction() &&
m_units.at(m_selectedUnit).getState() != UnitState::UNAVAILABLE)
{
std::cout << m_captureBuilding << std::endl;
m_captureBuilding = -1;
for (auto& [id, building] : m_buildings)
{
if (building.getXPosition() == u.getXPosition() &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment