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:
parent
d8919dcec6
commit
7523a73346
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue