Fix for #6944.

Fixes https://github.com/CleverRaven/Cataclysm-DDA/pull/6948.