From 112dbba7c4d38bf780e4e2f05bdff106b52ce2f9 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Sun, 14 Jul 2013 00:55:47 +0200 Subject: Change ContentFeatures array to a vector --- src/itemdef.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/itemdef.cpp') diff --git a/src/itemdef.cpp b/src/itemdef.cpp index f692ccf55..e7498ce55 100644 --- a/src/itemdef.cpp +++ b/src/itemdef.cpp @@ -519,7 +519,8 @@ public: // Add the four builtin items: // "" is the hand - // "unknown" is returned whenever an undefined item is accessed + // "unknown" is returned whenever an undefined item + // is accessed (is also the unknown node) // "air" is the air node // "ignore" is the ignore node @@ -530,6 +531,7 @@ public: m_item_definitions.insert(std::make_pair("", hand_def)); ItemDefinition* unknown_def = new ItemDefinition; + unknown_def->type = ITEM_NODE; unknown_def->name = "unknown"; m_item_definitions.insert(std::make_pair("unknown", unknown_def)); -- cgit v1.2.3