Mercurial > hg > forks > yadex
changeset 59:55bd29745535
Fix a NASTY bug in TEXTURE2 lump directory reading. This sometimes/often
caused many operations (such as texture aligning) to fail.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Sep 2011 07:03:29 +0300 |
parents | d554e443475d |
children | 1dfcb729ef3d |
files | src/textures.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/textures.cc Mon Sep 26 07:00:55 2011 +0300 +++ b/src/textures.cc Mon Sep 26 07:03:29 2011 +0300 @@ -531,7 +531,7 @@ dir->wadfile->read_i32(&numtex); // Read in the offsets for texture2 names offsets = (i32 *) GetMemory((long) numtex * 4); - dir->wadfile->read_i32(offsets); + dir->wadfile->read_i32(offsets, numtex); for (n = 0; n < numtex && !texofs; n++) { dir->wadfile->seek(dir->dir.start + offsets[n]);