mx sram: replace union-with-byte-array with operator[] to make gcc happy.
This commit is contained in:
1 parent
d300f3bbbc
commit
2a0f022da3
4 files changed
+28
-19
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user