Skip to content

Commit

Permalink
fixup array_access
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 17, 2018
1 parent 91265a3 commit d68dba9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/lua/core.lua
Expand Up @@ -328,6 +328,8 @@ if wesnoth.kernel_type() == "Game Lua Kernel" then
error(string.format("Invalid context for %s: expected nil, side, or unit", err_hint), 3)
end

wml.array_access = {}

--! Fetches all the WML container variables with name @a var.
--! @returns a table containing all the variables (starting at index 1).
function wml.array_access.get(var, context)
Expand Down

0 comments on commit d68dba9

Please sign in to comment.