mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 09:28:06 +00:00
move to std optional
This commit is contained in:
@@ -372,9 +372,9 @@ Instance* InstanceManager::FindPrivateInstance(const std::string& password) {
|
||||
int InstanceManager::GetSoftCap(LWOMAPID mapID) {
|
||||
CDZoneTableTable* zoneTable = CDClientManager::Instance().GetTable<CDZoneTableTable>();
|
||||
if (zoneTable) {
|
||||
const CDZoneTable* zone = zoneTable->Query(mapID);
|
||||
auto zone = zoneTable->Query(mapID);
|
||||
|
||||
if (zone != nullptr) {
|
||||
if (zone) {
|
||||
return zone->population_soft_cap;
|
||||
}
|
||||
}
|
||||
@@ -385,9 +385,9 @@ int InstanceManager::GetSoftCap(LWOMAPID mapID) {
|
||||
int InstanceManager::GetHardCap(LWOMAPID mapID) {
|
||||
CDZoneTableTable* zoneTable = CDClientManager::Instance().GetTable<CDZoneTableTable>();
|
||||
if (zoneTable) {
|
||||
const CDZoneTable* zone = zoneTable->Query(mapID);
|
||||
auto zone = zoneTable->Query(mapID);
|
||||
|
||||
if (zone != nullptr) {
|
||||
if (zone) {
|
||||
return zone->population_hard_cap;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user