[0.9-859-g954cb02] Burnt out torches cause error/debug message

How to reproduce:

  1. Aquire torch, activate torch
  2. Wait until torch burns out
  3. Get the following message: “DEBUG: burnt out torch is active, but has no known active function.”

In-game workaround: press space to dismiss debug message, then d to drop the burnt out torch. Picking it up after dropping does work with no more errors.

I’m not sure why this happens, as far as I can tell from iuse.cpp, the active flag is set to false when the torch runs out of fuel.

Thank you for your bug report!

I’ve posted it in our issue tracker.