Re: [newbie][code]One last time.

From: George Greer (greerga@circlemud.org)
Date: 03/22/99


On Sun, 21 Mar 1999, Anthony Benjamin a.k.a. Phreak404 wrote:

>PS - What should I change the IN_ROOM(ch) = is_in; too? just get rid of
>it?

Yup.

> for (dir = 0; dir < NUM_OF_DIRS; dir++) {
>       if (W_EXIT(EXIT(ch, dir)->to_room, dir)) {
>           for (i = world[ch->in_room].people; i; i = i->next_in_room) {

You needed to reassign your world[] index here.   You can't use
ch->in_room, try world[W_EXIT(EXIT(ch, dir)->to_room, dir))]

--
George Greer            | My beta stuff and related information.
greerga@circlemud.org   | http://www.circlemud.org/~greerga/


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



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