Re: [CODE][BUG] Shop bugs (top_shop_offset)

From: George Greer (greerga@circlemud.org)
Date: 08/09/01


On Thu, 9 Aug 2001, Mike Breuer wrote:

>Of course, if you ever try to access shop_index[top_shop] (or
>shop_index[top_shop - top_shop_index + 1], which is the same thing), you
>will probably crash.

"top_shop = top_shop - top_shop_offset + 1" for older than bpl16.  For
bpl16 and later, top_shop_index should be 0. If you lost the top shop, you
likely had it set wrong with regard to what your existing code did. In
particular, if you incremented the _CIRCLEMUD variable but didn't change
shop.c accordingly in bpl16 then you would have problems.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST