Skip to content

Commit

Permalink
Fix Storage.IsLocked error (#1086)
Browse files Browse the repository at this point in the history
Fix Storage.IsLocked error by checking for both parent type and gid
  • Loading branch information
imbalanced authored and noah- committed Jan 21, 2019
1 parent 9bb9968 commit 5d4a8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d2bs/kolbot/libs/common/Storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var Container = function (name, width, height, location) {
}

// Make sure the item is ours
if (!item.getParent() || item.getParent().gid !== me.gid) {
if (!item.getParent() || item.getParent().type !== me.type || item.getParent().gid !== me.gid) {
return false;
}

Expand Down

0 comments on commit 5d4a8d5

Please sign in to comment.