diff --git a/xwords4/relay/crefmgr.cpp b/xwords4/relay/crefmgr.cpp index 3435d1187..29ca31730 100644 --- a/xwords4/relay/crefmgr.cpp +++ b/xwords4/relay/crefmgr.cpp @@ -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 ) {