mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Use MAX_MAP_NAME constant for setting levelname in ServerBrowser
This commit is contained in:
parent
8328da706a
commit
6cb44740f1
@ -547,7 +547,7 @@ void CBrowser::HostPanel(void)
|
|||||||
{
|
{
|
||||||
if (!m_Server.m_svMapName.empty())
|
if (!m_Server.m_svMapName.empty())
|
||||||
{
|
{
|
||||||
strncpy_s(g_pHostState->m_levelName, m_Server.m_svMapName.c_str(), 64); // Copy new map into hoststate levelname. 64 is size of m_levelname.
|
strncpy_s(g_pHostState->m_levelName, m_Server.m_svMapName.c_str(), MAX_MAP_NAME); // Copy new map into hoststate levelname.
|
||||||
g_pHostState->m_iNextState = HostStates_t::HS_CHANGE_LEVEL_MP; // Force CHostState::FrameUpdate to change the level.
|
g_pHostState->m_iNextState = HostStates_t::HS_CHANGE_LEVEL_MP; // Force CHostState::FrameUpdate to change the level.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user