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:
Robert Müller 2023-11-22 23:12:47 +01:00
parent d331bcb496
commit 61c201c37c

View file

@ -1311,7 +1311,7 @@ void CConsole::ResetGameSettings()
FCommandCallback pfnCallback = pCommand->m_pfnCallback; \ FCommandCallback pfnCallback = pCommand->m_pfnCallback; \
TraverseChain(&pfnCallback, &pUserData); \ TraverseChain(&pfnCallback, &pUserData); \
CStrVariableData *pData = (CStrVariableData *)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); \
} \ } \
} }