Re: [CODE] SSE Guns and Ammo Bug

From: Jesper Röjestål (rk@aradja.com)
Date: 10/18/02


>
>
>  weapon = get_obj_in_list_vis(ch, arg, NULL, ch->carrying);
>  ammo = weapon->next;
>  obj_from_obj(ammo);
>  obj_to_char(ammo, ch);
>
look in structs.h in the struct obj_data (or whatever it's called nowdays)..

   struct obj_data *next_content; /* For 'contains' lists             */
   struct obj_data *next;              /* For the object
list              */

i.e:  ammo = weapon->next_content;
might work better than getting the next object in the object list(?).

-- Jesper Röjestål

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT