From b2819ea8693c479f6d578579a98579e73ef47aec Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 7 Nov 2013 11:40:26 +0400 Subject: [PATCH] Fix wrong argument iteration bounds in dfhack.matinfo.find(). --- library/LuaApi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/LuaApi.cpp b/library/LuaApi.cpp index 3f93e912d..bdc0c39e5 100644 --- a/library/LuaApi.cpp +++ b/library/LuaApi.cpp @@ -565,7 +565,7 @@ static int dfhack_matinfo_find(lua_State *state) { std::vector 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);