I actually did a clean pull this morning and it still segfaults on that line :), at least it does for me! Try summoning mob id 250 and dying, that crashes it for me at least. With my fix it doesn't crash anymore.
Haha yeah I figured as much, looking over your code it's pretty similar to mine...