I think I found a bug in the stock circle code. When the mud boots
the stops and starts to assign what products the shop will buy
it uses the following code:
temp = read_type_list(shop_f, list, new_format, MAX_TRADE);
CREATE(shop_index[top_shop].type, struct shop_buy_data, temp);
for (count = 0; count < temp; count++)
{
-----> SHOP_BUYTYPE(top_shop, count) = (byte) BUY_TYPE(list[count]);
SHOP_BUYWORD(top_shop, count) = BUY_WORD(list[count]);
}
I don't think it should typecast the line I pointed to as a byte.
Online Editors such as Oasis search for a -1 when setting up an
existing shop for editing. However, since it is typecast as a byte
a -1 will be turned into a 255. My mud was crashing every time I
tried to set up an existing shop until I removed that line. Let
me say, I'm not sure if this is a bug. But I am confused as to why
it is typecast as a byte if it is declared as an int. BTW: byte
is a typdef for char, defined in structs.h.
-Haddixx
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Haddixx | -=-=-Implementor of Avalanche MUD-=-=- |
+ Brian M. Menges + Running at: 143.207.31.45 8000 +
| haddixx@megamed.com | Web Page: http://www.megamed.com/~haddixx |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST