diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-21 11:51:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-21 11:51:29 +0200 |
commit | 1425c6def156840b359b90b4f32b9c7b8f005731 (patch) | |
tree | 0390ed5ad9bcf481416061446f859b3f48955422 /src/serverobject.h | |
parent | 12aad731adef495dec03f384d10b4f8f57b6a1d3 (diff) | |
download | minetest-1425c6def156840b359b90b4f32b9c7b8f005731.tar.gz minetest-1425c6def156840b359b90b4f32b9c7b8f005731.tar.bz2 minetest-1425c6def156840b359b90b4f32b9c7b8f005731.zip |
Cpp11 initializers: last src root changeset (#6022)
* Cpp11 initializers: last src root changeset
Finish to migrate all src root folder files to C++11 constructor initializers
Diffstat (limited to 'src/serverobject.h')
-rw-r--r-- | src/serverobject.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/serverobject.h b/src/serverobject.h index 3041910d1..cd1922c87 100644 --- a/src/serverobject.h +++ b/src/serverobject.h @@ -204,7 +204,7 @@ public: deleted until this is 0 to keep the id preserved for the right object. */ - u16 m_known_by_count; + u16 m_known_by_count = 0; /* - Whether this object is to be removed when nobody knows about @@ -215,7 +215,7 @@ public: to be deleted. - This can be set to true by anything else too. */ - bool m_removed; + bool m_removed = false; /* This is set to true when an object should be removed from the active @@ -226,17 +226,17 @@ public: m_known_by_count is true, object is deleted from the active object list. */ - bool m_pending_deactivation; + bool m_pending_deactivation = false; /* Whether the object's static data has been stored to a block */ - bool m_static_exists; + bool m_static_exists = false; /* The block from which the object was loaded from, and in which a copy of the static data resides. */ - v3s16 m_static_block; + v3s16 m_static_block = v3s16(1337,1337,1337); /* Queue of messages to be sent to the client |