Permalink
Browse files

Fixed a bug with the cop crashing the game.

  • Loading branch information...
1 parent f5f7dec commit fff02319db4726a0fe3a84761a31347636d3efe5 Rob committed Mar 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 jarm.js
View
@@ -52,7 +52,7 @@ game.addObject = function(obj, x, y){
}
game.addThinker = function(thinker, x, y){
if (x !== undefined && y !== undefined){
- game.objects.add(thinker, x, y);
+ game.objects.add(thinker.elem, x, y);
}
game.thinkers.push(thinker);
}

0 comments on commit fff0231

Please sign in to comment.