summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 349739be7..e67724ec1 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -143,14 +143,13 @@ struct MapNode
{
*this = n;
}
-
- MapNode(content_t content=CONTENT_AIR, u8 a_param1=0, u8 a_param2=0)
- {
- param0 = content;
- param1 = a_param1;
- param2 = a_param2;
- }
-
+
+ MapNode(content_t content = CONTENT_AIR, u8 a_param1=0, u8 a_param2=0)
+ : param0(content),
+ param1(a_param1),
+ param2(a_param2)
+ { }
+
// Create directly from a nodename
// If name is unknown, sets CONTENT_IGNORE
MapNode(INodeDefManager *ndef, const std::string &name,