Fixed logic bug.

This commit is contained in:
Ryan C. Gordon 2002-08-16 15:22:52 +00:00
parent 9800a4404d
commit 752b317ca4
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ static int openQPak(const char *filename, int forWriting, void **fileHandle)
if (!readui32(*fileHandle, &sig))
goto openPak_failed;
if (sig == QPAK_MAGIC)
if (sig != QPAK_MAGIC)
{
__PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
goto openPak_failed;