@@ -83,7 +83,7 @@ static void pack_collection_asset(OutputStream& dest, const CollectionAsset& src
8383static void unpack_texture_list (CollectionAsset& dest, InputStream& src, BuildConfig config, const char * hint)
8484{
8585 s32 count = src.read <s32>(0 );
86- verify (count < 0x1000 , " texlist has too many elements and is probably corrupted." );
86+ verify (count < 0x1000 , " matlist has too many elements and is probably corrupted." );
8787 src.seek (4 );
8888 std::vector<s32> offsets = src.read_multiple <s32>(count);
8989 for (s32 i = 0 ; i < count; i++) {
@@ -204,7 +204,7 @@ static void unpack_mission_classes(CollectionAsset& dest, InputStream& src, Buil
204204 }
205205
206206 ByteRange textures_range{entry.texture_list_offset , end - entry.texture_list_offset };
207- unpack_asset (materials, src, textures_range, config, FMT_COLLECTION_PIF8_4MIPS );
207+ unpack_asset (materials, src, textures_range, config, FMT_COLLECTION_MATLIST_PIF8_4MIPS );
208208 }
209209
210210 if (entry.class_offset != 0 ) {
@@ -253,7 +253,7 @@ static void pack_mission_classes(OutputStream& dest, const CollectionAsset& src,
253253 });
254254
255255 if (material_count > 0 ) {
256- entry.texture_list_offset = pack_asset<ByteRange>(dest, moby.get_materials (), config, 0x10 , FMT_COLLECTION_PIF8_4MIPS ).offset ;
256+ entry.texture_list_offset = pack_asset<ByteRange>(dest, moby.get_materials (), config, 0x10 , FMT_COLLECTION_MATLIST_PIF8_4MIPS ).offset ;
257257 }
258258 }
259259
0 commit comments