summaryrefslogtreecommitdiff
path: root/src/util/pointedthing.h
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-06-19 23:54:58 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-19 23:54:58 +0200
commit4a5e8ad343079f6552fab639770e5771ed7c4e7a (patch)
treeeeab3adec1fc3e7a3b06d9f53b92ab99a5e0d290 /src/util/pointedthing.h
parent4a789490834157baa8788a2f36c95b86c1e4440e (diff)
downloadminetest-4a5e8ad343079f6552fab639770e5771ed7c4e7a.tar.gz
minetest-4a5e8ad343079f6552fab639770e5771ed7c4e7a.tar.bz2
minetest-4a5e8ad343079f6552fab639770e5771ed7c4e7a.zip
C++11 cleanup on constructors (#6000)
* C++11 cleanup on constructors dir script
Diffstat (limited to 'src/util/pointedthing.h')
-rw-r--r--src/util/pointedthing.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/pointedthing.h b/src/util/pointedthing.h
index f695a4ebd..92c33968f 100644
--- a/src/util/pointedthing.h
+++ b/src/util/pointedthing.h
@@ -36,7 +36,7 @@ enum PointedThingType
struct PointedThing
{
//! The type of the pointed object.
- PointedThingType type;
+ PointedThingType type = POINTEDTHING_NOTHING;
/*!
* Only valid if type is POINTEDTHING_NODE.
* The coordinates of the node which owns the
@@ -74,9 +74,9 @@ struct PointedThing
* Only valid if type is POINTEDTHING_OBJECT.
* The ID of the object the ray hit.
*/
- s16 object_id;
+ s16 object_id = -1;
- PointedThing();
+ PointedThing() {};
std::string dump() const;
void serialize(std::ostream &os) const;
void deSerialize(std::istream &is);