From 39154737a5a70e66fe9cd960bfa42207b1ef6477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Tue, 18 Apr 2023 19:34:54 +0200 Subject: [PATCH] Use std::optional instead of boost::optional. --- lib/rmg/CZonePlacer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rmg/CZonePlacer.cpp b/lib/rmg/CZonePlacer.cpp index 9e22204dc..716cf869f 100644 --- a/lib/rmg/CZonePlacer.cpp +++ b/lib/rmg/CZonePlacer.cpp @@ -226,8 +226,8 @@ void CZonePlacer::placeOnGrid(CRandomGenerator* rand) if ((zoneType == ETemplateZoneType::PLAYER_START || zoneType == ETemplateZoneType::CPU_START) && (existingZoneType == ETemplateZoneType::PLAYER_START || existingZoneType == ETemplateZoneType::CPU_START)) { - int firstPlayer = zone->getOwner().get(); - int secondPlayer = existingZone->getOwner().get(); + int firstPlayer = zone->getOwner().value(); + int secondPlayer = existingZone->getOwner().value(); //Players with lower indexes (especially 1 and 2) will be placed further apart