Skip to content

Commit

Permalink
Fixed hash function in Runewords.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Azur3Sky committed Apr 13, 2021
1 parent 17f9962 commit 6fc9138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kolbot/libs/common/Runewords.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,6 @@ RuneLoop:
// given a list of required runes for a runeword,
// generate and return the hashcode of that list
getHash: function(runewords) {
return runewords.join("|");
return Array.isArray(runewords) ? runewords.join("|") : runewords;
}
};

0 comments on commit 6fc9138

Please sign in to comment.