mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
add assert
This commit is contained in:
parent
38bd3d4528
commit
2e0ee693bc
1 changed files with 3 additions and 1 deletions
|
@ -1308,7 +1308,9 @@ model_assignPlayerTiles( ModelCtxt* model, XP_S16 turn, TrayTileSet* tiles )
|
|||
XP_U16
|
||||
model_getNumTilesInTray( ModelCtxt* model, XP_S16 turn )
|
||||
{
|
||||
PlayerCtxt* player = &model->players[turn];
|
||||
PlayerCtxt* player;
|
||||
XP_ASSERT( turn >= 0 );
|
||||
player = &model->players[turn];
|
||||
return player->trayTiles.nTiles;
|
||||
} /* model_getNumPlayerTiles */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue