X-Git-Url: http://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/8afa7b7717a5a2f45182a63d043401960fdeef92..76b8a4bf05701afcd1be69ff4490a7c6be431dc4:/src/engine/texture.gob diff --git a/src/engine/texture.gob b/src/engine/texture.gob index 8059c3a..8e7bb4a 100644 --- a/src/engine/texture.gob +++ b/src/engine/texture.gob @@ -52,7 +52,7 @@ struct engine_texture_data *decode_mipmap(UObject *uo) long datalen; buflen = upkg_export_read(f, buf, sizeof buf); - if (uo->pkg->version >= 63) { + if (f->pkg->version >= 63) { /* * There's an offset to the end of the image data here; not * clear why it's useful since it's implied by the very next @@ -84,7 +84,7 @@ struct engine_texture_data *decode_mipmap(UObject *uo) /* At this point, the current file offset should match the one recorded * above. */ - if (uo->pkg->version >= 63 && end_offset != (f->base + f->offset)) { + if (f->pkg->version >= 63 && end_offset != (f->base + f->offset)) { u_err(uo, "mipmap end offset does not match data size"); goto err_free; }