diff --git a/source/tinyply.h b/source/tinyply.h index cc9f0d6..7a236f5 100644 --- a/source/tinyply.h +++ b/source/tinyply.h @@ -888,10 +888,11 @@ void PlyFile::PlyFileImpl::parse_data(std::istream & is, bool firstPass) } else { + dummyCount = 0; read_property_ascii(p.listType, f.list_stride, &listSize, dummyCount, sizeof(listSize), _is); // the list size for (size_t i = 0; i < listSize; ++i) { - read_property_ascii(p.propertyType, f.prop_stride, dest + destOffset, destOffset, destOffset, _is); + read_property_ascii(p.propertyType, f.prop_stride, dest + destOffset, destOffset, destSize, _is); } } };