Re: [CODE]: Loading Objects on Character Creation..

From: George Greer (greerga@circlemud.org)
Date: 04/09/99


On Sat, 10 Apr 1999, Ryan Kahn wrote:

>In function do_start:
>  obj_to_char(read_object(12105, REAL), ch);
>  obj_to_char(read_object(12102, REAL), ch);
>  obj_to_char(read_object(12106, REAL), ch);
>  obj_to_char(read_object(12106, REAL), ch);
>  obj_to_char(read_object(12108, REAL), ch);
>
>It compiles clean... but it crashes when someone enters the game.. any
>opinions?

You want VIRTUAL and to check the return values.

--
George Greer            | Sammy's Code - OBuild
greerga@circlemud.org   | http://www.ticnet.com/samedi/code.html


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