Skip to content
Permalink
Browse files
Fixed logic bug.
  • Loading branch information
icculus committed Aug 16, 2002
1 parent 9800a44 commit 752b317ca487c0fe5eb774dac35b0138917cd5fc
Showing with 1 addition and 1 deletion.
  1. +1 −1 archivers/qpak.c
@@ -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;

0 comments on commit 752b317

Please sign in to comment.