shithub: choc

Download patch

ref: 1bcff874c52aca3134cee636178ab5d6272fef58
parent: a915b13e0d0c612c12b8f54132ffa3189375dde5
author: Simon Howard <fraggle@soulsphere.org>
date: Sun Apr 26 14:55:43 EDT 2015

Don't read currentthinker->next after Z_Free().

Save the next pointer in the P_RunThinkers() loop when iterating through
thinkers, so that if the current thinker is freed we can still advance
to the next thinker without dereferencing freed memory.