diff --git a/src/video/cursor.cpp b/src/video/cursor.cpp index abd94b1867..1e4068d71b 100644 --- a/src/video/cursor.cpp +++ b/src/video/cursor.cpp @@ -259,7 +259,7 @@ static void DrawBuildingCursor() if (!Selected.empty()) { bool f = true; for (size_t i = 0; f && i < Selected.size(); ++i) { - f = ((ontop = CanBuildHere(Selected[i], *CursorBuilding, mpos).value_or(nullptr)) != nullptr); + f = ((ontop = CanBuildHere(Selected[i], *CursorBuilding, mpos)).value_or(nullptr) != nullptr); // Assign ontop or nullptr ontop = (ontop == Selected[i] ? nullptr : ontop); }