CleverRaven/Cataclysm-DDA — pull request #8106 by BevapDin (2014-07-01 20:36:54+00:00)
Title: Fix debug message after autosave while crafting

Fixes the debug message in #8023.

The `available` flag is set, when the game check whether the recipe has all required tools/components (before it displays the recipes in the craft screen). When the game is reloaded, those values are all initialized to -1 (which means not available). The consumption function would simply skip all the components.

The check for the parameter `force_available` is pointless without the check for `available`, so I removed it.

The debug messages were added because that was my first guess about the crash.

Is the crash in #8023 anyhow related? More information is needed there.