Re: [CODE] Restring

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


On Fri, 5 Mar 1999, Christoffer Lundberg wrote:

>On Fri, 5 Mar 1999, George wrote:
>
>> On Fri, 5 Mar 1999, Christoffer Lundberg wrote:
>>
>> >object.name = str_dup(obj->name);
>> >object.short_desc = str_dup(obj->short_description);
>> >object.long_desc = str_dup(obj->description);
>>
>> Pointers don't save to disk very well since the data they point to doesn't
>> exist next time you load the file.
>>
>
>Oh. But how does the other stuff like object-values work then?
>What shall I put there instead?

Don't use pointers, use arrays of characters, like 'char_file_u' does when
it translates char_data -> char_file_u

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.m-l.org/  (mostly) | stupidity is not thus handicapped.
http://www.van.m-l.org/CircleMUD/   |                  -- Elbert Hubbard


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