mkxp icon indicating copy to clipboard operation
mkxp copied to clipboard

incorrect serialization of multi-dimensional tables if {y,z}size <= 1

Open cremno opened this issue 4 years ago • 0 comments

Table.new(1, 1, 1)._dump(-1).unpack(?V)[0]  # => 1
Table.new(1, 0, 1)._dump(-1).unpack(?V)[0]  # => 1
Table.new(0, 1)._dump(-1).unpack(?V)[0]  # => 1
Table.new(0, 0)._dump(-1).unpack(?V)[0]  # => 1

Should be 3, 3, 2, 2.

cremno avatar Sep 09 '20 20:09 cremno