Skip to content

Commit

Permalink
don't accept variablenames with index > max_loop
Browse files Browse the repository at this point in the history
making them default to game_config::max_loop isn't useful im most cases.
  • Loading branch information
gfgtdf committed Jul 4, 2014
1 parent 9084e5c commit bc6fa27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/variable_info.cpp
Expand Up @@ -164,7 +164,7 @@ namespace
}
if(res > int(game_config::max_loop))
{
res = game_config::max_loop;
throw invalid_variablename_exception();
}
return res;
}
Expand Down

0 comments on commit bc6fa27

Please sign in to comment.