forked from 0ad/0ad
Fixed the gameState.GetEntityById() function
This was SVN commit r11526.
This commit is contained in:
parent
cf11aa8dea
commit
af207e1c0a
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user