From 78d6b14fe86ff25e77022b60f13df353b8343c20 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Thu, 4 May 2017 13:05:12 +0300 Subject: [PATCH] Don't use deprecated torrent_info fields --- src/base/bittorrent/torrentinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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