mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +01:00
valid needs to have either exactly 1 or 0
This commit is contained in:
parent
06a71bab18
commit
4894639b3a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue