mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
You shall not clear the string.
This commit is contained in:
commit
de7f17005f
@ -102,7 +102,6 @@ void CCompanion::RefreshServerList()
|
|||||||
void CCompanion::SendHostingPostRequest()
|
void CCompanion::SendHostingPostRequest()
|
||||||
{
|
{
|
||||||
HostToken = std::string();
|
HostToken = std::string();
|
||||||
HostRequestMessage = std::string();
|
|
||||||
bool result = r5net->PostServerHost(HostRequestMessage, HostToken, ServerListing{ MyServer.name, std::string(GameGlobals::HostState->m_levelName), "", GameGlobals::Cvar->FindVar("hostport")->m_pzsCurrentValue, MyServer.password, std::to_string(*reinterpret_cast<std::int32_t*>(0x1656057E0)) /* checksum */});
|
bool result = r5net->PostServerHost(HostRequestMessage, HostToken, ServerListing{ MyServer.name, std::string(GameGlobals::HostState->m_levelName), "", GameGlobals::Cvar->FindVar("hostport")->m_pzsCurrentValue, MyServer.password, std::to_string(*reinterpret_cast<std::int32_t*>(0x1656057E0)) /* checksum */});
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user