add assert -- unset numPlayers trashed stack

This commit is contained in:
eehouse 2010-01-02 01:41:12 +00:00
parent a6e6e2b05c
commit b5e1e3a2c6

View file

@ -61,7 +61,7 @@ drawScoreBoard( BoardCtxt* board )
short ii;
XP_U16 nPlayers = board->gi->nPlayers;
XP_ASSERT( nPlayers < MAX_NUM_PLAYERS );
if ( nPlayers > 0 ) {
ModelCtxt* model = board->model;
XP_S16 curTurn = server_getCurrentTurn( board->server );