mx sram: replace union-with-byte-array with operator[] to make gcc happy.

This commit is contained in:
Shawn Hoffman
2018-09-30 20:34:22 -07:00
parent d300f3bbbc
commit 2a0f022da3
4 changed files with 28 additions and 19 deletions

View File

@ -353,7 +353,7 @@ unsigned int NetPlayServer::OnConnect(ENetPeer* socket)
spac << static_cast<MessageId>(NP_MSG_SYNC_GC_SRAM);
for (size_t i = 0; i < sizeof(g_SRAM) - offsetof(Sram, settings); ++i)
{
spac << g_SRAM.raw[offsetof(Sram, settings) + i];
spac << g_SRAM[offsetof(Sram, settings) + i];
}
Send(player.socket, spac);