fix: torrentGet.wanted RPC breaking change in [4.0.0..4.0.1] (#5170)

This commit is contained in:
reardonia
2023-03-07 20:44:25 -05:00
committed by GitHub
parent 033d698306
commit 9c436d87dd
2 changed files with 3 additions and 3 deletions

View File

@@ -853,7 +853,7 @@ void initField(tr_torrent const* const tor, tr_stat const* const st, tr_variant*
tr_variantInitList(initme, n);
for (tr_file_index_t i = 0; i < n; ++i)
{
tr_variantListAddBool(initme, tr_torrentFile(tor, i).wanted);
tr_variantListAddInt(initme, tr_torrentFile(tor, i).wanted);
}
}
break;