Re: [CODE] What would cause memmory corruption ?

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/01/97


On Tue, 2 Dec 1997, Rasmus Ronlev wrote:

>        mob_index[SHOP_KEEPER(index)].func == *shop_keeper)

   int   keeper;                /* The mobil who owns the shop (virtual)*/

So you're using the virtual number to assign into the array.

Therefore, your test of <= top_of_mobt is preventing most (if not all) of
your shop keepers from working. :)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


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



This archive was generated by hypermail 2b30 : 12/08/00 PST