return birth_realm_ptr;
}
-static void impose_first_realm(player_type *creature_ptr, s32b choices)
+static void impose_first_realm(player_type *creature_ptr, s32b *choices)
{
if (creature_ptr->realm2 == REALM_SELECT_CANCEL)
return;
return;
if (is_good_realm(creature_ptr->realm1)) {
- choices &= ~(CH_DEATH | CH_DAEMON);
+ *choices &= ~(CH_DEATH | CH_DAEMON);
} else {
- choices &= ~(CH_LIFE | CH_CRUSADE);
+ *choices &= ~(CH_LIFE | CH_CRUSADE);
}
}
if ((*count) < 2)
return auto_select;
- impose_first_realm(creature_ptr, choices);
+ impose_first_realm(creature_ptr, &choices);
put_str(_("注意:魔法の領域の選択によりあなたが習得する呪文のタイプが決まります。", "Note: The realm of magic will determine which spells you can learn."),
23, 5);