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

Open
opened 2020-09-09 20:10:26 +00:00 by cremno · 0 comments
cremno commented 2020-09-09 20:10:26 +00:00 (Migrated from github.com)
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.

```ruby 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.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: MapleShrine/mkxp#232
No description provided.