Przeglądaj źródła

Fixed logic bug.

Ryan C. Gordon 23 lat temu
rodzic
commit
752b317ca4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      archivers/qpak.c

+ 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;