From 93a1e75c521b9c21a36444eb7373f0dce824f970 Mon Sep 17 00:00:00 2001 From: FO Date: Fri, 20 Sep 2024 07:37:57 +0200 Subject: [PATCH] make sure that appearance and capabilities are initialized --- src/main/java/edu/nps/moves/dis/EntityStatePdu.java | 4 ++-- src/main/java/edu/nps/moves/dis7/EntityStatePdu.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/edu/nps/moves/dis/EntityStatePdu.java b/src/main/java/edu/nps/moves/dis/EntityStatePdu.java index 5527419..82f25c1 100644 --- a/src/main/java/edu/nps/moves/dis/EntityStatePdu.java +++ b/src/main/java/edu/nps/moves/dis/EntityStatePdu.java @@ -56,7 +56,7 @@ public class EntityStatePdu extends EntityInformationFamilyPdu implements Serial * a series of bit flags that are used to help draw the entity, such as * smoking, on fire, etc. */ - protected int entityAppearance; + protected int entityAppearance = 0; /** * parameters used for dead reckoning @@ -72,7 +72,7 @@ public class EntityStatePdu extends EntityInformationFamilyPdu implements Serial /** * a series of bit flags */ - protected int capabilities; + protected int capabilities = 0; /** * variable length list of articulation parameters diff --git a/src/main/java/edu/nps/moves/dis7/EntityStatePdu.java b/src/main/java/edu/nps/moves/dis7/EntityStatePdu.java index 177b06d..2d6e4b9 100644 --- a/src/main/java/edu/nps/moves/dis7/EntityStatePdu.java +++ b/src/main/java/edu/nps/moves/dis7/EntityStatePdu.java @@ -57,7 +57,7 @@ public class EntityStatePdu extends EntityInformationFamilyPdu implements Serial * a series of bit flags that are used to help draw the entity, such as * smoking, on fire, etc. */ - protected long entityAppearance; + protected long entityAppearance = 0; /** * parameters used for dead reckoning @@ -73,7 +73,7 @@ public class EntityStatePdu extends EntityInformationFamilyPdu implements Serial /** * a series of bit flags */ - protected long capabilities; + protected long capabilities = 0; /** * variable length list of variable parameters. In earlier DIS versions this