mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
add assert
This commit is contained in:
parent
3b18ba9605
commit
f15bae46d2
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…
Reference in a new issue