diff --git a/src/game-lib-a-2-utils.js b/src/game-lib-a-2-utils.js index a624fc1..d2b7698 100644 --- a/src/game-lib-a-2-utils.js +++ b/src/game-lib-a-2-utils.js @@ -983,7 +983,7 @@ GameLib.Utils.PaddedText = function(length, padChar, string) { var pad = ""; for (var x = 0; x < length; x++) { - pad[x] = padChar; + pad += padChar; } return pad.substring(0, pad.length - string.length) + string; diff --git a/src/game-lib-image.js b/src/game-lib-image.js index efda900..8890cf3 100644 --- a/src/game-lib-image.js +++ b/src/game-lib-image.js @@ -160,7 +160,7 @@ GameLib.Image.prototype.getPixelData = function() { var imageData = context.getImageData(0, 0, this.width, this.height); var pixels = imageData.data; - + return pixels; };