diff --git a/21g30t1e75.js b/21g30t1e75.js index 2e81267..b8a49db 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -315,7 +315,7 @@ GameLib.CustomCode.prototype.createGameObject = function( if (objectType === GameLib.CustomCode.OBJECT_TYPE_FOOD) { type = GameLib.Utils.GetRandomIntInclusive(0, 5); - switch (foodType) { + switch (type) { case GameLib.CustomCode.FOOD_BACON : mesh = this.createGameMesh(this.materialBacon); break;