summaryrefslogtreecommitdiff
path: root/src/content_nodemeta.cpp
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-10 11:38:49 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-11 15:22:35 +0200
commit467b3cf4c10b5078371af0a3b5ae951017f35020 (patch)
tree8e3ddf5236e12ac48f656eb3375dd3d16844d1e3 /src/content_nodemeta.cpp
parentc007d8219e0ed138e0cebd1492efac7a33ee2068 (diff)
downloadminetest-467b3cf4c10b5078371af0a3b5ae951017f35020.tar.gz
minetest-467b3cf4c10b5078371af0a3b5ae951017f35020.tar.bz2
minetest-467b3cf4c10b5078371af0a3b5ae951017f35020.zip
Some inventory const-ification
Diffstat (limited to 'src/content_nodemeta.cpp')
-rw-r--r--src/content_nodemeta.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content_nodemeta.cpp b/src/content_nodemeta.cpp
index 6b8bf05ef..433e6d04b 100644
--- a/src/content_nodemeta.cpp
+++ b/src/content_nodemeta.cpp
@@ -178,9 +178,9 @@ std::string FurnaceNodeMetadata::infoText()
//return "Furnace";
if(m_fuel_time >= m_fuel_totaltime)
{
- InventoryList *src_list = m_inventory->getList("src");
+ const InventoryList *src_list = m_inventory->getList("src");
assert(src_list);
- InventoryItem *src_item = src_list->getItem(0);
+ const InventoryItem *src_item = src_list->getItem(0);
if(src_item)
return "Furnace is out of fuel";
@@ -219,7 +219,7 @@ bool FurnaceNodeMetadata::step(float dtime)
InventoryList *src_list = m_inventory->getList("src");
assert(src_list);
- InventoryItem *src_item = src_list->getItem(0);
+ const InventoryItem *src_item = src_list->getItem(0);
// Start only if there are free slots in dst, so that it can
// accomodate any result item
@@ -268,7 +268,7 @@ bool FurnaceNodeMetadata::step(float dtime)
InventoryList *fuel_list = m_inventory->getList("fuel");
assert(fuel_list);
- InventoryItem *fuel_item = fuel_list->getItem(0);
+ const InventoryItem *fuel_item = fuel_list->getItem(0);
if(ItemSpec(ITEM_MATERIAL, CONTENT_TREE).checkItem(fuel_item))
{