Re: [CODE] Sedit.c/genshp.c errors

From: Melissa Jadwinski (meersan@earthlink.net)
Date: 08/30/00


If I recall correctly, top_of_shopt was changed in bpl16 to be similar to
the other top_of_XXXs.  You might want to go through shop.c and sedit.c and
make sure they're not using top_of_shopt itself as an rnum.  (E.g., let's
say there are 16 shops, under bpl16+, top_of_shopt == 17, not 16).

For example, in real_shop() change
>  for (rshop_num = 0; rshop_num <= top_shop - top_shop_offset; rshop_num++)

to
  for (rshop_num = 0; rshop_num < top_shop - top_shop_offset; rshop_num++)

Might be worth a try, considering the problem you describe.

-- Meer


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT