Skip to content

Commit

Permalink
Fix null in IFF Data
Browse files Browse the repository at this point in the history
  • Loading branch information
leif81 authored Jun 3, 2020
1 parent 6eb14a0 commit 33b5f86
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions opendis/dis7.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,16 @@ def serialize(self, outputStream):
outputStream.write_unsigned_int(self.recordType);
outputStream.write_unsigned_short( len(self.iffData));
for anObj in self.iffData:
anObj.serialize(outputStream)


outputStream.write_unsigned_byte(anObj)

def parse(self, inputStream):
""""Parse a message. This may recursively call embedded objects."""

self.recordType = inputStream.read_unsigned_int();
self.recordLength = inputStream.read_unsigned_short();
for idx in range(0, self.recordLength):
element = null()
element.parse(inputStream)
self.iffData.append(element)
val = inputStream.read_unsigned_byte()
self.iffData.append(val)



Expand Down

0 comments on commit 33b5f86

Please sign in to comment.