Without seeing more of the code, I can't say for sure, but I would say that you are calling it before 'ch->victim' is assigned. This would also present the problem that in the corpses created after that point, the pointer is off. Check that.
I don't personally recall using 'ch->victim' in my ROM based code anywhere, so if this is a personal addition, you may want to check in to it. - Valnir. ----- Original Message ----- From: "Cyhawk" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, April 09, 2004 12:44 PM Subject: Small bug/error > Hello everyone. Well im reworking my item generator agian, and since i > belive the safest way to give the > item to the corpse is through make_corpse, i have the game set up to set to > set victim->killer right before > the raw kill in bool damage. > > victim->killer = ch; > raw_kill (victim); > > (and then it takes ch->victim during make_corpse to pass along to the item > generator) > > However, ive run into a small snag. The first mobile killed, is always > Null. (regardless of mobile, or who > is doing the killing) Its just the first mobile killed after a reboot. > Anyone have an ideas why this would happen? > > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom >

