mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Engine: fix string bug, extraneous copy
request.requestmsg() returns a reference but we assign the reference to a char*. Removed the c_str() call.
This commit is contained in:
parent
999ce009a8
commit
02d0ba918c
@ -510,7 +510,7 @@ bool CRConServer::ProcessMessage(const char* pMsgBuf, const int nMsgLen)
|
||||
//-----------------------------------------------------------------------------
|
||||
void CRConServer::Execute(const cl_rcon::request& request) const
|
||||
{
|
||||
const string& commandString = request.requestmsg().c_str();
|
||||
const string& commandString = request.requestmsg();
|
||||
const char* const pCommandString = commandString.c_str();
|
||||
|
||||
ConCommandBase* pCommandBase = g_pCVar->FindCommandBase(pCommandString);
|
||||
|
Loading…
x
Reference in New Issue
Block a user