Small error in demo code, index missing

This commit is contained in:
Ruud Schramp 2016-03-28 15:44:07 +00:00
parent 65157383aa
commit 1122c2ef23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ commando( 'js-time' , function( params, sender ) {
i = 0;
if ( sender.location ) {
for ( ; i < 4; i++ ) {
if ( times.toLowerCase() == time ) {
if ( times[i].toLowerCase() == time ) {
sender.location.world.setTime( i * 6000 );
break;
}