git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1321 c06c8d41-db1a-0410-9941-cceddc491573
OOF5OILRBVJKULW3LKRCC7HZY2I2RKZ6QZMRIDFBUGGDFGJFBCHAC
int num_spells = 0;
for (int i = 0; i < SPELLBOOK_SIZE; num_spells++)
{
if (is_valid_spell_in_book(type, i))
++num_spells;
else
break;
}
return num_spells;
int nspel = 0;
while (nspel < SPELLBOOK_SIZE && is_valid_spell_in_book(type, nspel))
++nspel;
return (nspel);