Fixed the gameState.GetEntityById() function

This was SVN commit r11526.
This commit is contained in:
Jonathan Waller 2012-04-16 16:54:11 +00:00
parent cf11aa8dea
commit af207e1c0a

View File

@ -170,7 +170,7 @@ GameState.prototype.getEntities = function() {
GameState.prototype.getEntityById = function(id){
if (this.entities._entities[id]) {
return new Entity(this.ai, this.entities._entities[id]);
return this.entities._entities[id];
}else{
//debug("Entity " + id + " requested does not exist");
}