Hi
I don't know if it was a stock bug with dg_scripts are not, but when I
upgraded from pl7 to pl8, editing existing mobs that had scripts attached on
them was crashing the mud when it came to saving internally. Anyhow, I
noticed that entering the script section of the mob, and leaving without
adding/removing scripts attached to it was making medit not to crash.
It was crashing in free_proto_script.
Here is my fix:
At the end of dg_olc_script_copy, I added:
/* is this a fix? */
if (OLC_ITEM_TYPE(d)==MOB_TRIGGER)
OLC_MOB(d)->proto_script = OLC_SCRIPT(d);
else if (OLC_ITEM_TYPE(d)==OBJ_TRIGGER)
OLC_OBJ(d)->proto_script = OLC_SCRIPT(d);
else OLC_ROOM(d)->proto_script = OLC_SCRIPT(d);
Y. Harmelin
--
+---------------------------------------------------------------+
| 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