Re: [CRASH] Race Body Parts

From: Steven R. Hatfield (srhatfield@HOME.COM)
Date: 11/01/98


Check your wear_bitvectors[] array and make sure you have the additional
body parts listed in there. It sounds like you are overstepping the
bounds of the array.

-Prism

> -----Original Message-----
> From: Circle Discussion List [mailto:CIRCLE@post.queensu.ca]On Behalf Of
> Phillip A. Ames
> Sent: Sunday, November 01, 1998 5:16 AM
> To: CIRCLE@post.queensu.ca
> Subject:  [CRASH] Race Body Parts
>
>
> Hey all, I added in the race body parts, and have a question... When
> someone tries to wear eq, the game will crash and when I click debug(I'm
> running windows) points me to the chunk below.
>
>   // first, make sure they have the part!
>   if (!HAS_BODY(ch, where)) {
>       send_to_char("You can't wear that there.\r\n", ch);
>       return;
>     }
>
>   /* second, make sure that the wear position is valid. */
>   if (!CAN_WEAR(obj, wear_bitvectors[where])) {            <------- This
> line
>     act("You can't wear $p there.", FALSE, ch, obj, 0, TO_CHAR);
>     return;
>   }
>
> Anyone know what could be causing this?
>
> -Phillip
>
> Phillip Ames    | Satisfaction is not guaranteed.
> kirk47@juno.com | -Ferengi Rule of Acquisition #19
> ICQ: 8778335    | AOL IM: Grathol
> http://members.xoom.com/Gowron/index.html(Unfinished)
>
> ___________________________________________________________________
> You don't need to buy Internet access to use free Internet e-mail.
> Get completely free e-mail from Juno at http://www.juno.com
> or call Juno at (800) 654-JUNO [654-5866]
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+
>


     +------------------------------------------------------------+
     | 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/15/00 PST