1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-02 11:03:32 +02:00

valid needs to have either exactly 1 or 0

This commit is contained in:
Ethan Lee 2020-06-14 22:40:57 -04:00
parent 06a71bab18
commit 4894639b3a

View File

@ -101,9 +101,9 @@ bool binaryBlob::unPackBinary(const char* name)
/* Name can be stupid, just needs to be terminated */
m_headers[i].name[47] = '\0';
if (m_headers[i].valid & ~0x1)
if (m_headers[i].valid & ~0x1 || !m_headers[i].valid)
{
continue; /* Must be EXACTLY 1 */
continue; /* Must be EXACTLY 1 or 0 */
}
if ((offset + m_headers[i].size) > size)
{