Fix for #9153.

Fixes https://github.com/CleverRaven/Cataclysm-DDA/issues/9153.