From 9a035c66ff286055b23dea8f67a86462f0341663 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Thu, 23 Sep 2010 06:28:13 -0700 Subject: [PATCH] add assertion --- xwords4/relay/crefmgr.cpp | 1 + 1 file changed, 1 insertion(+) 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 ) {