df::tool_uses is now implicitly int16_t, so no more enum_field<> here

develop
Quietust 2012-01-23 19:40:02 -06:00
parent 6502f0f6ae
commit 6adadb396e
1 changed files with 1 additions and 1 deletions

@ -304,7 +304,7 @@ bool ItemTypeInfo::matches(const df::job_item &item, MaterialInfo *mat)
OK(2,blunt);
if (VIRTUAL_CAST_VAR(def, df::itemdef_toolst, custom)) {
df::enum_field<df::tool_uses,int16_t> key(tool_uses::FOOD_STORAGE);
df::tool_uses key(tool_uses::FOOD_STORAGE);
if (linear_index(def->tool_use, key) >= 0)
OK(3,food_storage);
} else {