On Sat, Nov 10, 2001 at 10:30:51PM -0600, Tom Whiting wrote:
> That's exactly what I was doing actually.. 

No it was not. You were working for CHAR_DATA structures, structures
which are only valid when the spouse would be online. Furthermore,
in the rest of your code you were juggling with pointers instead
of copying the contents of the memory where the pointers were
pointing to.

If you want to use data in a structure which belongs to a different
structure, str_dup() it (and don't forget to free_string() it
afterwards). Don't use pointers to objects which might, or might
not, exist within the next second, save the data yourself.

Edwin

-- 
Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
[EMAIL PROTECTED] |           Interested in MUDs? Visit Fatal Dimensions:
------------------+                       http://www.FatalDimensions.org/

Reply via email to