Cool, thanks. Based on the scripts I am thinking it has to do with either what party numbers the game adds these folks to (for example the script DOG2 is party# 21), or, the code it's running on their death(s).
It might be doing something weird like trying to assign a party# to a dead person or...