Re: [CODE] What would cause memmory corruption ?

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 12/01/97


At 11:06 PM 12/1/97 -0500, you wrote:
>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)*/
>

nope, that's a mistype in the code, i would assume.
i did a simple log() at the beginning of that for() loop,
    log("SHOP_KEEPER(index) == %d (VNUM?)", SHOP_KEEPER(index));
and (seeing as how we don't have many shops this didn't spam me too much)
this is part of the printout i got.

Dec  1 18:24:23 :: SHOP_KEEPER(index) == 132 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == -1 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == -1 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == -1 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 147 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 151 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 241 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 244 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 245 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 248 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 279 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 281 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 282 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 283 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 284 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 325 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 346 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 347 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 348 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 349 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 350 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 351 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == 352 (VNUM?)
Dec  1 18:24:23 :: SHOP_KEEPER(index) == -1 (VNUM?)

those look like RNUM's to me :-P
but notice all those -1's?
those are shops that have no shopkeepers (silly builders, whose gonna sell
stuff?)

anyway, that may have been the cause of the problem's that i had for awhile.
ah well, :-P


Akuma the Raging Coder

  +------------------------------------------------------------+
  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |
  +------------------------------------------------------------+


     +------------------------------------------------------------+
     | 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