mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
add assert -- unset numPlayers trashed stack
This commit is contained in:
parent
a6e6e2b05c
commit
b5e1e3a2c6
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ drawScoreBoard( BoardCtxt* board )
|
||||||
short ii;
|
short ii;
|
||||||
|
|
||||||
XP_U16 nPlayers = board->gi->nPlayers;
|
XP_U16 nPlayers = board->gi->nPlayers;
|
||||||
|
XP_ASSERT( nPlayers < MAX_NUM_PLAYERS );
|
||||||
if ( nPlayers > 0 ) {
|
if ( nPlayers > 0 ) {
|
||||||
ModelCtxt* model = board->model;
|
ModelCtxt* model = board->model;
|
||||||
XP_S16 curTurn = server_getCurrentTurn( board->server );
|
XP_S16 curTurn = server_getCurrentTurn( board->server );
|
||||||
|
|
Loading…
Reference in a new issue