Re: [CODE] Segmentation Fault

From: John (witpens@optushome.com.au)
Date: 12/11/01


Tiago blahs:-
>
> world[troom].dir_option[train->leave_dir]->to_room = sroom;
>

Have you checked that you did this
CREATE(world[troom].dir_option[train->leave_dir], struct
room_direction_data, 1); before assign any values?

dir_option[] are pointers that need to be created before you can assign
any values.

PS: I am assuming train->leave_dir < NUM_OF_DIRS.

--
   +---------------------------------------------------------------+
   | 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/24/03 PDT