more struct fixes
authorDan Olson <theoddone33@icculus.org>
Mon, 23 Nov 2009 09:23:21 +0000 (01:23 -0800)
committerDan Olson <theoddone33@icculus.org>
Mon, 23 Nov 2009 09:23:21 +0000 (01:23 -0800)
pyhexen/wad.py

index a4c3fce..55bde1e 100644 (file)
@@ -36,7 +36,7 @@ class WadReader:
                        fileHandle.seek (infoTable)
 
                        for i in range (0, numLumps):
-                               lumpinfo.append (unpack (WadDesc.filelump_t, fileHandle.read(WadDesc.filelump_size)))
+                               lumpinfo.append (struct.unpack (WadDesc.filelump_t, fileHandle.read(WadDesc.filelump_size)))
                else:
                        # single file, boring.
                        size = os.stat (filename).st_size