mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-03 14:48:26 +00:00
Changed how the TryParse function works (and also did some general cleanup along the way)
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
InstanceManager::InstanceManager(Logger* logger, const std::string& externalIP) {
|
||||
mLogger = logger;
|
||||
mExternalIP = externalIP;
|
||||
GeneralUtils::TryParse(Game::config->GetValue("world_port_start"), m_LastPort);
|
||||
m_LastPort =
|
||||
GeneralUtils::TryParse<decltype(m_LastPort)>(Game::config->GetValue("world_port_start")).value_or(m_LastPort);
|
||||
m_LastInstanceID = LWOINSTANCEID_INVALID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user