Fix assert: implicit cast to boolean doesn't work when bit being

tested is outside the low-order byte.
This commit is contained in:
ehouse 2006-08-22 04:20:40 +00:00
parent 62dd1091ca
commit b99f993760

View file

@ -1175,7 +1175,7 @@ commitTurn( ModelCtxt* model, XP_S16 turn, TrayTileSet* newTiles,
row = pt->row;
tile = getModelTileRaw( model, col, row );
XP_ASSERT( tile & TILE_PENDING_BIT );
XP_ASSERT( (tile & TILE_PENDING_BIT) != 0 );
val = tile & TILE_VALUE_MASK;
if ( val > 1 ) { /* somebody else is using this square too! */