mkxp
mkxp copied to clipboard
incorrect serialization of multi-dimensional tables if {y,z}size <= 1
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.