summaryrefslogtreecommitdiff
path: root/src/itemdef.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-07-14 00:55:47 +0200
committerKahrl <kahrl@gmx.net>2013-07-14 23:06:31 +0200
commit112dbba7c4d38bf780e4e2f05bdff106b52ce2f9 (patch)
tree7fbe8695a950726a2b178cd6a012430d0d42e211 /src/itemdef.cpp
parent9733dd5b5e5516e18775665db132b2446492716c (diff)
downloadminetest-112dbba7c4d38bf780e4e2f05bdff106b52ce2f9.tar.gz
minetest-112dbba7c4d38bf780e4e2f05bdff106b52ce2f9.tar.bz2
minetest-112dbba7c4d38bf780e4e2f05bdff106b52ce2f9.zip
Change ContentFeatures array to a vector
Diffstat (limited to 'src/itemdef.cpp')
-rw-r--r--src/itemdef.cpp4
1 files changed, 3 insertions, 1 deletions
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));