mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Suppress compiler warning and avoid potential bug
The string literal will never change during runtime; this commit is to make sure no mistakes are made in future refactors.
This commit is contained in:
parent
a7cab1d891
commit
f09bdc472b
@ -460,7 +460,7 @@ void CHostState::State_ChangeLevelMP(void)
|
||||
void CHostState::ResetLevelName(void)
|
||||
{
|
||||
static const char* szNoMap = "no_map";
|
||||
Q_snprintf(const_cast<char*>(m_levelName), sizeof(m_levelName), szNoMap);
|
||||
Q_snprintf(const_cast<char*>(m_levelName), sizeof(m_levelName), "%s", szNoMap);
|
||||
}
|
||||
|
||||
void VHostState::Attach(void) const
|
||||
|
Loading…
x
Reference in New Issue
Block a user