Re: [OasisOLC] BugFix Help Please

From: Daniel A. Koepke (dkoepke@circlemud.org)
Date: 11/17/02


On Sun, 17 Nov 2002, Mythran wrote:

> Hmm, I hate it when ppl leave something as an exercise for the
> reader...

These are pointers, so

  OLC_CONFIG(d) = config_info;

is assigning the value of the pointer config_info (i.e., an address) to
OLC_CONFIG(d).  This is not the same as copying the data structure; you
have one structure and two pointers to it.  Perhaps you meant to do:

  *OLC_CONFIG(d) = *config_info;

instead?

-dak

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