add assert to catch bad dict earlier

This commit is contained in:
Andy2 2011-08-18 07:49:40 -07:00
parent 455cb9a4c4
commit 7a1346e530

View file

@ -61,6 +61,7 @@ void
stack_setBitsPerTile( StackCtxt* stack, XP_U16 bitsPerTile )
{
XP_ASSERT( !!stack );
XP_ASSERT( bitsPerTile == 5 || bitsPerTile == 6 );
stack->bitsPerTile = bitsPerTile;
}