fix global var

This commit is contained in:
crabman77 2016-03-26 13:02:17 +01:00
parent a6824a9d2f
commit 3c6e7ddf66
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ function register_glyph(name, basics, tab)
runes.glyphs[name] = {}
runes.glyphs[name].mana_cost = basics.mana_cost or 0
def = table.copy(tab)
local def = table.copy(tab)
def.groups.glyph = 1
def.description = basics.description or "Mysterious Glyph"

View File

@ -6,7 +6,7 @@ runes.scrolls = {}
function register_scroll(name, type, data)
if not data then return end
def = {
local def = {
inventory_image = (data.texture or "runes_scroll_unknown.png"),
groups = {scroll = 1},
description = (data.description or "Mysterious Scroll"),