Skip to content

Commit

Permalink
Fixed the me.game.getEntityByName when using camelcase names
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed Dec 26, 2012
1 parent 212b843 commit 878b97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ var me = me || {};
var objList = [];
entityName = entityName.toLowerCase();
for (var i = gameObjects.length, obj; i--, obj = gameObjects[i];) {
if(obj.name == entityName) {
if(obj.name && obj.name.toLowerCase() === entityName) {
objList.push(obj);
}
}
Expand Down

0 comments on commit 878b97e

Please sign in to comment.