mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Fix string game settings not being reset correctly
Due to swapped `str_copy` arguments, the old value for string game variables was being overridden by the current value instead of the other way around in `CConsole::ResetGameSettings`. There are currently no string game settings affected by this.
This commit is contained in:
parent
d331bcb496
commit
61c201c37c
|
@ -1311,7 +1311,7 @@ void CConsole::ResetGameSettings()
|
|||
FCommandCallback pfnCallback = pCommand->m_pfnCallback; \
|
||||
TraverseChain(&pfnCallback, &pUserData); \
|
||||
CStrVariableData *pData = (CStrVariableData *)pUserData; \
|
||||
str_copy(pData->m_pOldValue, pData->m_pStr, pData->m_MaxSize); \
|
||||
str_copy(pData->m_pStr, pData->m_pOldValue, pData->m_MaxSize); \
|
||||
} \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue