Skip to content

Commit

Permalink
Fix compilation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptsengineer committed Dec 1, 2024
1 parent a641b62 commit 5a13694
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion inventory-system
6 changes: 3 additions & 3 deletions src/core/grid_inventory.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class GridInventory : public Inventory {
Vector2i _swap_position = Vector2i(0, 0);
Ref<QuadTree> quad_tree;
Vector2i size = Vector2i(8, 8);
TypedArray<GridInventoryConstraint> grid_constraints = new TypedArray<GridInventoryConstraint>();
TypedArray<Vector2i> stack_positions = new TypedArray<Vector2i>();
TypedArray<bool> stack_rotations = new TypedArray<bool>();
TypedArray<GridInventoryConstraint> grid_constraints;
TypedArray<Vector2i> stack_positions;
TypedArray<bool> stack_rotations;
bool _bounds_broken() const;
void _refresh_quad_tree();
bool _size_check(const Ref<ItemStack> stack1, const Ref<ItemStack> stack2);
Expand Down
2 changes: 1 addition & 1 deletion src/core/inventory.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Inventory : public NodeInventories {
private:
int max_size = 16;
String inventory_name = "Inventory";
TypedArray<InventoryConstraint> constraints = new TypedArray<InventoryConstraint>();
TypedArray<InventoryConstraint> constraints;
void _load_slots();
void _insert_stack(int stack_index);
void _remove_stack_at(int stack_index);
Expand Down

0 comments on commit 5a13694

Please sign in to comment.