fixed broken assert

This commit is contained in:
Arvid Norberg 2007-12-20 23:53:03 +00:00
parent d1311e2bb8
commit 3b4cccf1dd
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ namespace libtorrent
, m_in_constructor(true)
#endif
{
TORRENT_ASSERT(peerinfo->banned == false);
TORRENT_ASSERT(peerinfo == 0 || peerinfo->banned == false);
#ifndef TORRENT_DISABLE_RESOLVE_COUNTRIES
std::fill(m_country, m_country + 2, 0);
#endif