On Thu, Feb 07, 2002 at 11:50:34AM -0500, Jef Waite wrote: > There is no easy fix. And I don't think it's a buffer issue. More than > likely you are hitting the stack limit for the shell. When a character > saves, the fwrite_obj calls itself over and over so it's possible to have > a stack overflow. > > Fixing it isn't the easiest thing to do. The way I did it was I limited > the number of items they could carry in one bag, then limited the number > of items they could carry open in their inventory.
Since fwrite_obj wants to write things the other way around, I've made the list the other way around. Well, I've added an OBJ_DATA pointer to the obj_data structure which gets assigned somewhere in fwrite_obj and which points to the previous object. Then I start writing the list starting with the last object and go back until I'm at the beginning. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org [EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/

