Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed logic bug.
  • Loading branch information
icculus committed Aug 16, 2002
1 parent 9800a44 commit 752b317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archivers/qpak.c
Expand Up @@ -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;
Expand Down

0 comments on commit 752b317

Please sign in to comment.