add assertion

This commit is contained in:
Andy2 2010-09-23 06:28:13 -07:00
parent acb52d11dc
commit 9a035c66ff

View file

@ -637,6 +637,7 @@ SafeCref::SafeCref( const char* connName, HostID hid,
, m_isValid( false )
{
CookieRef* cref;
assert( hid <= 4 ); /* no more than 4 hosts */
cref = m_mgr->getMakeCookieRef( connName, hid, socket, nPlayersH, gameSeed );
if ( cref != NULL ) {