diff --git a/include/libtorrent/aux_/torrent_list.hpp b/include/libtorrent/aux_/torrent_list.hpp index f2449a4d339..99dd0f30a62 100644 --- a/include/libtorrent/aux_/torrent_list.hpp +++ b/include/libtorrent/aux_/torrent_list.hpp @@ -234,7 +234,9 @@ struct torrent_list #endif TORRENT_ASSERT(all_torrents == all_indexed_torrents); +#if !defined TORRENT_DISABLE_ENCRYPTION TORRENT_ASSERT(all_torrents == all_obf_indexed_torrents); +#endif } #endif