Page 1 of 1

(fixed) Crash on flying objects landing...

Posted: Mon Nov 26, 2007 1:52 pm
by Remy
I'm still trying to find if this in an error in the Lua code, but there's a crash if an object thrown or shot at a monster strikes them (it may be when it hits the ground after impact, I'm not sure). Here's the log entry:

Code: Select all

PROGRAM CRASH!
Location: 0 11 3
Reason: Segmentation Fault
Stack Dump:
DSBmain
DSBgameloop
run_timers
adv_flyer
i_to_tile
to_tile(off_trigger)
In this case, I was testing in the 'test_dungeon', and was throwing arrows at the pack of mummies. I've tried it from both sides, shooting and throwing. Spells work fine, and there's not always a crash (hence why I think it's from the item landing, not striking, since they sometimes get "stuck" in the monster).

Posted: Mon Nov 26, 2007 9:39 pm
by Sophia
Oops... :shock: :oops:

I made a lot of changes to that code in order to implement on_fly and I guess I didn't get it quite right.

Fixed now. :)