Selaa lähdekoodia

Fixed logic bug.

Ryan C. Gordon 23 vuotta sitten
vanhempi
commit
752b317ca4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;