diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 0a350f7c6..2eb9c1d19 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -182,9 +182,9 @@ long get_torrent_index(torrent_handle &handle) long get_index_from_unique_ID(long unique_ID) { try{ - for (unsigned long i = 0; i < M_torrents->size(); i++) - if ((*M_torrents)[i].unique_ID == unique_ID) - return i; + for (unsigned long i = 0; i < M_torrents->size(); i++) + if ((*M_torrents)[i].unique_ID == unique_ID) + return i; } catch(invalid_handle&) {