mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
vcmi: use std::optional
This commit is contained in:
@ -98,7 +98,7 @@ void ObjectDistributor::distributeLimitedObjects()
|
||||
oi.templ = temp;
|
||||
|
||||
//Rounding up will make sure all possible objects are exhausted
|
||||
uint32_t mapLimit = rmgInfo.mapLimit.get();
|
||||
uint32_t mapLimit = rmgInfo.mapLimit.value();
|
||||
uint32_t maxPerZone = std::ceil(float(mapLimit) / numZones);
|
||||
|
||||
//But not more than zone limit
|
||||
|
Reference in New Issue
Block a user