diff --git a/21g30t1e75.js b/21g30t1e75.js index bbd3e04..28000fe 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1235,12 +1235,13 @@ GameLib.CustomCode.prototype.powerup = function(gameObject) { if (gameObject.type === GameLib.CustomCode.POWERUP_LIFE) { - this.lives += 1; + this.state.lives += 1; - if (this.lives > 3) { - this.lives = 3; + if (this.state.lives > 3) { + this.state.lives = 3; } + this.displayHUD(); } if (gameObject.type === GameLib.CustomCode.POWERUP_SPEED) {