Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r--src/core/entity.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index f9062e0..539c8d5 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -109,6 +109,7 @@ Entity::Entity(unsigned int flags) :
entity_zone = 0;
entity_oldzone = 0;
+ entity_visible = true;
entity_serverside = false;
@@ -121,6 +122,7 @@ Entity::Entity(std::istream & is)
entity_id = 0;
entity_zone = 0;
entity_oldzone = 0;
+ entity_visible = true;
entity_model = 0;
entity_clientstate = 0;
@@ -439,7 +441,7 @@ void EntityDynamic::serialize_server_update(std::ostream & os) const
void EntityDynamic::receive_server_update(std::istream &is)
{
- unsigned int o;
+ unsigned int o = 0;
is >> o; // visibility
if (o) {
entity_visible = true;