diff --git a/src/base/bittorrent/torrentinfo.cpp b/src/base/bittorrent/torrentinfo.cpp index 357378bd2..6441c5a0e 100644 --- a/src/base/bittorrent/torrentinfo.cpp +++ b/src/base/bittorrent/torrentinfo.cpp @@ -186,7 +186,7 @@ qlonglong TorrentInfo::fileSize(int index) const qlonglong TorrentInfo::fileOffset(int index) const { if (!isValid()) return -1; - return m_nativeInfo->file_at(index).offset; + return m_nativeInfo->files().file_offset(index); } QList TorrentInfo::trackers() const