Maintenance: CSession: 4-byte arrays only ever used as one int become int fields (timeAttackMode->m_timeAttackMode 079C, petNameModif

Batch #18695 by ragnarok-clanker: no function's compiled code changes; checked with 277 compiled unit(s), including every includer of Source/Client/Session/Session.h.
This commit is contained in:
ragnarok-clanker 2026-11-12 18:23:50 +00:00
commit ff0dbcc3f6
25 changed files with 136 additions and 137 deletions

View file

@ -176,8 +176,7 @@ int SetCmdOnOffList(lua_State* state) {
const int optionId = SetOption(name, enabled);
if (optionId != 3) {
if (optionId == 229) {
const int value = enabled;
std::memcpy(g_session.interactionFlags, &value, sizeof(value));
g_session.m_serviceOption229 = enabled;
}
g_session.m_commandOptions.emplace_back(name, optionId);
}