add assert

This commit is contained in:
ehouse 2005-03-15 15:13:52 +00:00
parent 3b18ba9605
commit f15bae46d2

View file

@ -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 */