1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00

Tidy up binaryBlob initialization to use SDL_zeroa()

It's simpler and more concise than writing out the SDL_memset() in full,
which means you're less likely to screw up those lines of code.
This commit is contained in:
Misa 2021-02-13 17:24:20 -08:00 committed by Ethan Lee
parent bd97378862
commit 70b9ffe6a5

View File

@ -10,8 +10,8 @@
binaryBlob::binaryBlob()
{
numberofHeaders = 0;
SDL_memset(m_headers, 0, sizeof(m_headers));
SDL_memset(m_memblocks, 0, sizeof(m_memblocks));
SDL_zeroa(m_headers);
SDL_zeroa(m_memblocks);
}
#ifdef VVV_COMPILEMUSIC