diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-01-17 19:19:26 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-01-18 13:39:50 +1000 |
commit | 805c8e51e5dd4dfad381a0d40b4388b5de90becf (patch) | |
tree | f84388699288e570b3244ce7534fbd7aed684081 /src/mapnode.h | |
parent | 2f0a8f1c3e6429d0d579093c95b9bf27c32e6fd1 (diff) | |
download | minetest-805c8e51e5dd4dfad381a0d40b4388b5de90becf.tar.gz minetest-805c8e51e5dd4dfad381a0d40b4388b5de90becf.tar.bz2 minetest-805c8e51e5dd4dfad381a0d40b4388b5de90becf.zip |
Create empty default constructor for MapNode
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index ec21a2014..82c53e7d4 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -139,12 +139,15 @@ struct MapNode */ u8 param2; + MapNode() + { } + MapNode(const MapNode & n) { *this = n; } - MapNode(content_t content = CONTENT_AIR, u8 a_param1=0, u8 a_param2=0) + MapNode(content_t content, u8 a_param1=0, u8 a_param2=0) : param0(content), param1(a_param1), param2(a_param2) |