Skip to content

Commit

Permalink
initialized fruit to pacfruit to fix a bug preventing learn state fro…
Browse files Browse the repository at this point in the history
…m starting
  • Loading branch information
shaunlebron committed Sep 4, 2012
1 parent e977bb8 commit 8acc878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pacman.js
Expand Up @@ -8623,6 +8623,7 @@ var fruit;
var setFruitFromGameMode = (function() {
var pacfruit = new PacFruit();
var mspacfruit = new MsPacFruit();
fruit = pacfruit;
return function() {
if (gameMode == GAME_PACMAN) {
fruit = pacfruit;
Expand Down
1 change: 1 addition & 0 deletions src/fruit.js
Expand Up @@ -304,6 +304,7 @@ var fruit;
var setFruitFromGameMode = (function() {
var pacfruit = new PacFruit();
var mspacfruit = new MsPacFruit();
fruit = pacfruit;
return function() {
if (gameMode == GAME_PACMAN) {
fruit = pacfruit;
Expand Down

0 comments on commit 8acc878

Please sign in to comment.