Adds missing variable.

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