Should close issue #79

I haven't tested this for BG2, since I can't edit the file directly for testing, but this is what works for me in my mod. Try it out.