Skip to content

Commit

Permalink
make sure that appearance and capabilities are initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
fo-ifad committed Sep 20, 2024
1 parent fc4ca07 commit 93a1e75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/nps/moves/dis/EntityStatePdu.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/edu/nps/moves/dis7/EntityStatePdu.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 93a1e75

Please sign in to comment.