Fixed logic bug.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 16 Aug 2002 15:22:52 +0000
changeset 456 ecaab6f9e19f
parent 455 4798cf95bf2f
child 457 92e898299c7d
Fixed logic bug.
archivers/qpak.c
--- a/archivers/qpak.c	Fri Aug 09 19:50:45 2002 +0000
+++ b/archivers/qpak.c	Fri Aug 16 15:22:52 2002 +0000
@@ -154,7 +154,7 @@
     if (!readui32(*fileHandle, &sig))
         goto openPak_failed;
     
-    if (sig == QPAK_MAGIC)
+    if (sig != QPAK_MAGIC)
     {
         __PHYSFS_setError(ERR_UNSUPPORTED_ARCHIVE);
         goto openPak_failed;