diff --git a/kolbot/libs/common/Runewords.js b/kolbot/libs/common/Runewords.js index d3d1c39..3096c67 100644 --- a/kolbot/libs/common/Runewords.js +++ b/kolbot/libs/common/Runewords.js @@ -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; } }; \ No newline at end of file