summaryrefslogtreecommitdiff
path: root/src/voxel.h
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-08 16:13:48 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-08 16:13:48 +0200
commit163c38e175f7604ae5d1e3de20674f0da5e21b9c (patch)
tree3f0a1c8da419f2fee8cf819d99120058c07602ff /src/voxel.h
parent11be390110538eef2c362616ca960d4cd55c5810 (diff)
downloadminetest-163c38e175f7604ae5d1e3de20674f0da5e21b9c.tar.gz
minetest-163c38e175f7604ae5d1e3de20674f0da5e21b9c.tar.bz2
minetest-163c38e175f7604ae5d1e3de20674f0da5e21b9c.zip
Always return from non-void functions
This quiets a warning in Clang.
Diffstat (limited to 'src/voxel.h')
-rw-r--r--src/voxel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/voxel.h b/src/voxel.h
index 6d1a318f1..51df18299 100644
--- a/src/voxel.h
+++ b/src/voxel.h
@@ -453,12 +453,14 @@ public:
if(m_area.contains(p) == false)
return false;
m_data[m_area.index(p)] = n;
+ return true;
}
bool setNodeNoEmerge(s32 i, MapNode n)
{
if(m_area.contains(i) == false)
return false;
m_data[i] = n;
+ return true;
}
/*bool setContentNoEmerge(v3s16 p, u8 c)
{