> I am working on improving my identify spell a bit but the mud seems to > take offense to it..gdb spits up: > > Program received signal SIGFPE, Arithmetic exception. > 0x8090736 in spell_identify (level=12, ch=0x83417b0, victim=0x0, > obj=0x8343120) > at spells.c:301 > 301 condition = GET_OBJ_CSLOTS(obj)*100/GET_OBJ_TSLOTS(obj); > (gdb) #0 0x8090736 in spell_identify (level=12, ch=0x83417b0, victim=0x0, > obj=0x8343120) at spells.c:301 > > any little hints/solutions? > Ack, I suppose thats what you get for replying to a reply not the original, I thought it was a thread from a while ago :( Yeah, 'identify' on any item that has not got its cslots and tslots assigned will crash. Like I said, do a search for my update in the mailing list archives .. it fixes all the bugs in the original snippet and adds a tad more :) Andy +------------------------------------------------------------+ | 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