On Mon, 30 Sep 1996, Brian Menges wrote: > if( !IS_SET(GET_OBJ_EXTRA(obj), ITEM_MAGIC) ) > { > /* free old strings */ > if(obj->name) free(obj->name); > if(obj->description) free(obj->description); > if(obj->short_description) free(obj->short_description); > strcpy(name, obj->name); > You free the prototype's aliases, description, and room description, then copy the new alias over the prototype ;), check out how Jeremy figures out if the string belongs to a prototype in free_obj(), then do the same check so you don't free the prototype like that :) -George +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST