渡されたとしてもmake_object()内ではget_obj_num_prep()し直さないように
変更. その場合は, make_object()の前にget_obj_num_prep()でテーブルが構
成されていることを信用する.
{
int k_idx;
+ /*
+ * Hack -- If restriction is already specified, allocation table is
+ * should be prepared by get_obj_num_prep().
+ * We rely previous preparation before reaching here.
+ */
/* Good objects */
- if (mode & AM_GOOD)
+ if ((mode & AM_GOOD) && !get_obj_num_hook)
{
- /* Activate restriction */
+ /* Activate restriction (if already specified, use it) */
get_obj_num_hook = kind_is_good;
/* Prepare allocation table */