staydown array was out of bounds and causing memory corruption.
Authored by: sumolx 2009-12-20
Parent: [r2536]
Child: [r2538]