Fixed logic bug.
This commit is contained in:
parent
9800a4404d
commit
752b317ca4
|
@ -154,7 +154,7 @@ static int openQPak(const char *filename, int forWriting, void **fileHandle)
|
||||||
if (!readui32(*fileHandle, &sig))
|
if (!readui32(*fileHandle, &sig))
|
||||||
goto openPak_failed;
|
goto openPak_failed;
|
||||||
|
|
||||||
if (sig == QPAK_MAGIC)
|
if (sig != QPAK_MAGIC)
|
||||||
{
|
{
|
||||||
__PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
|
__PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
|
||||||
goto openPak_failed;
|
goto openPak_failed;
|
||||||
|
|
Loading…
Reference in New Issue