improve robustness of resource buff qty tracking using kahan sum
Merge pull request #975 from rwcarlsen/fix-qty

improve robustness of resource buff qty tracking using kahan sum