Skip to content

Commit

Permalink
Fixed "level not found" when using camel case on level id (ticket mel…
Browse files Browse the repository at this point in the history
  • Loading branch information
obiot committed Mar 31, 2012
1 parent ebdf05d commit b6d9d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/level/level.js
Expand Up @@ -743,7 +743,7 @@
*/
obj.loadLevel = function(levelId) {
// make sure it's a string
levelId = levelId.toString();
levelId = levelId.toString().toLowerCase();
// throw an exception if not existing
if (levels[levelId] === undefined) {
throw ("melonJS: level " + levelId + " not found");
Expand Down

0 comments on commit b6d9d2c

Please sign in to comment.