diff --git a/21g30t1e75.js b/21g30t1e75.js index 6c4a84d..c7b9b19 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -539,8 +539,8 @@ GameLib.CustomCode.prototype.createGameObject = function( */ if ( - currentGameObject.objectType === GameLib.CustomCode.OBJECT_TYPE_POWERUP || - currentGameObject.objectType === GameLib.CustomCode.OBJECT_TYPE_FOOD + gameObject.objectType === GameLib.CustomCode.OBJECT_TYPE_POWERUP || + gameObject.objectType === GameLib.CustomCode.OBJECT_TYPE_FOOD ) { /** * Food and powerups automatically get added, snake bodys need careful insertion