From d80d972bb0389d527383aa05de1a6d538acbe36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20J=C3=A4mtner?= <hanja189@student.liu.se> Date: Wed, 22 Jul 2020 13:16:55 +0200 Subject: [PATCH] Fixed the refinery issue from pipeline --- src/BuildingPlacer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildingPlacer.cpp b/src/BuildingPlacer.cpp index bc94e5f92..a4840f076 100644 --- a/src/BuildingPlacer.cpp +++ b/src/BuildingPlacer.cpp @@ -233,7 +233,7 @@ CCTilePosition BuildingPlacer::getRefineryPosition() for (auto & unit : m_bot.GetAllUnits()) { - UnitType & refinery = Util::GetRefinery(m_bot.GetPlayerRace(Players::Self), m_bot); + UnitType refinery = Util::GetRefinery(m_bot.GetPlayerRace(Players::Self), m_bot); if (!unit.getType().isGeyser()) -- GitLab