Fix wrong argument iteration bounds in dfhack.matinfo.find().

develop
Alexander Gavrilov 2013-11-07 11:40:26 +04:00
parent 15c2d99a3e
commit b2819ea869
1 changed files with 1 additions and 1 deletions

@ -565,7 +565,7 @@ static int dfhack_matinfo_find(lua_State *state)
{
std::vector<std::string> tokens;
for (int i = 1; i < argc; i++)
for (int i = 1; i <= argc; i++)
tokens.push_back(luaL_checkstring(state, i));
info.find(tokens);