mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
move turn-in-range assert to where it won't fail
This commit is contained in:
parent
6477147854
commit
ecaca66a96
1 changed files with 2 additions and 1 deletions
|
@ -401,6 +401,8 @@ getPendingTileFor( const ModelCtxt* model, XP_U16 turn, XP_U16 col, XP_U16 row,
|
|||
const PendingTile* pendings;
|
||||
XP_U16 i;
|
||||
|
||||
XP_ASSERT( turn < VSIZE(model->players) );
|
||||
|
||||
player = &model->players[turn];
|
||||
pendings = player->pendingTiles;
|
||||
for ( i = 0; i < player->nPending; ++i ) {
|
||||
|
@ -424,7 +426,6 @@ model_getTile( const ModelCtxt* model, XP_U16 col, XP_U16 row,
|
|||
{
|
||||
CellTile cellTile = getModelTileRaw( model, col, row );
|
||||
XP_Bool pending = XP_FALSE;
|
||||
XP_ASSERT( turn >= 0 );
|
||||
|
||||
if ( (cellTile & TILE_PENDING_BIT) != 0 ) {
|
||||
if ( getPending
|
||||
|
|
Loading…
Reference in a new issue