From 3c6e7ddf66514d54c0fa36e640554fc3d58c5670 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Sat, 26 Mar 2016 13:02:17 +0100 Subject: [PATCH] fix global var --- mods/runes/glyphs.lua | 2 +- mods/runes/scrolls.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/runes/glyphs.lua b/mods/runes/glyphs.lua index ff9ba344..2551658f 100644 --- a/mods/runes/glyphs.lua +++ b/mods/runes/glyphs.lua @@ -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" diff --git a/mods/runes/scrolls.lua b/mods/runes/scrolls.lua index c92a8bb9..fa6c42be 100644 --- a/mods/runes/scrolls.lua +++ b/mods/runes/scrolls.lua @@ -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"),