On Fri, 3 Oct 1997, Brian Williams - Nashak wrote:
>I still can't figure out how to read/write a int * from the pfile.
>What I'm trying to do is something like this:
>in player_specials_saved or something:
> int *memorized;
>
>then in another file:
> int *memmed = player_specials_saved.memorized;
>
> blah blah blah, mess around with memmed, add, remove stuff from it.
>
> player_specials_saved.memorized = memmed;
You declared a pointer to pss.memorized, you did not copy the value in it.
Try 'int memmed = player_specials_saved.memorized;' and then do the copy
back as you have it below. (Or simply don't trash pss.memorized in tthe
first place by using temporary variables.)
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST