Skip to content

Commit

Permalink
Add variant in deserialize conversion on grid_inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptsengineer committed Dec 1, 2024
1 parent 02d6f2e commit 2a7c58e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/grid_inventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,10 @@ bool GridInventory::sort() {

Dictionary GridInventory::serialize() const {
Dictionary data = Inventory::serialize();
data["stack_positions"] = stack_positions.duplicate();
data["stack_rotations"] = stack_rotations.duplicate();
Variant stack_pos_var = stack_positions.duplicate();
Variant stack_rot_var = stack_positions.duplicate();
data["stack_positions"] = stack_pos_var;
data["stack_rotations"] = stack_rot_var;
return data;
}

Expand Down

0 comments on commit 2a7c58e

Please sign in to comment.