forked from mirror/openmw-tes3mp
Fix GetProtocolVersion
This commit is contained in:
parent
b6086ab015
commit
94f6ab30f2
1 changed files with 2 additions and 1 deletions
|
@ -128,5 +128,6 @@ const char *ScriptFunctions::GetServerVersion() noexcept
|
||||||
|
|
||||||
const char *ScriptFunctions::GetProtocolVersion() noexcept
|
const char *ScriptFunctions::GetProtocolVersion() noexcept
|
||||||
{
|
{
|
||||||
return to_string((int)TES3MP_PROTO_VERSION).c_str();
|
static string version = to_string(TES3MP_PROTO_VERSION);
|
||||||
|
return version.c_str();
|
||||||
}
|
}
|
Loading…
Reference in a new issue