1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-28 03:09:40 +00:00

[Server] Fix return values for server functions providing system info

This commit is contained in:
David Cernat 2019-04-23 23:40:41 +03:00
parent d8919dcec6
commit 7523a73346

View file

@ -84,12 +84,14 @@ unsigned int ServerFunctions::GetMillisecondsSinceServerStart() noexcept
const char *ServerFunctions::GetOperatingSystemType() noexcept
{
return Utils::getOperatingSystemType().c_str();
static const std::string operatingSystemType = Utils::getOperatingSystemType();
return operatingSystemType.c_str();
}
const char *ServerFunctions::GetArchitectureType() noexcept
{
return Utils::getArchitectureType().c_str();
static const std::string architectureType = Utils::getArchitectureType();
return architectureType.c_str();
}
const char *ServerFunctions::GetServerVersion() noexcept