diff options
Diffstat (limited to 'packets/item_option.gd')
-rw-r--r-- | packets/item_option.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packets/item_option.gd b/packets/item_option.gd index 9a226db..1cf338f 100644 --- a/packets/item_option.gd +++ b/packets/item_option.gd @@ -31,7 +31,7 @@ static func from_bytes(bytes: ByteStream): static func array_from_bytes(bytes: ByteStream) -> Array[ItemOption]: var array: Array[ItemOption] = [] - while bytes.available(): + while bytes.available() > 0: var chunk = from_bytes(bytes) array.append(chunk) |