Fix warning message spam from previous commit

This commit is contained in:
Tellow Krinkle
2018-11-10 03:35:25 -06:00
parent 36f2c3ecd5
commit 63b15f6190
2 changed files with 2 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ class AssetEdit:
paddedArrayLength = arrayLength + (4 - arrayLength) % 4
if arrayPos + 4 + paddedArrayLength == len(data):
self.hasStream = False
elif arrayPos + 4 + paddedArrayLength == len(data) - 12:
elif arrayPos + 4 + paddedArrayLength <= len(data) - 12:
self.hasStream = True
else:
print(f"Couldn't figure out if {self.name} has a stream or not. Comparing {arrayPos + 4 + paddedArrayLength} to {len(data)}")