1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Use std::optional instead of boost::optional.

This commit is contained in:
Tomasz Zieliński
2023-04-18 19:34:54 +02:00
parent 6551585f96
commit 39154737a5

View File

@@ -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