From c64b1f5c0e0f23ef62698238cfcf15d4aa2c02ca Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Wed, 23 Oct 2019 10:34:23 +0200 Subject: [PATCH] I dont get it ... --- game/modules/tome/class/Actor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua index c870f7a078..2c6ff8e509 100644 --- a/game/modules/tome/class/Actor.lua +++ b/game/modules/tome/class/Actor.lua @@ -1963,7 +1963,7 @@ function _M:tooltip(x, y, seen_by) local resists = tstring{} local first = true ts:add({"color", "ANTIQUE_WHITE"}, "Resists: ") - for t, _ in table.orderedPairs2(self.resists, dt_order) do + for t, _ in table.orderedPairs2(self.resists or {}, dt_order) do local v = self:combatGetResist(t) if t == "all" or t == "absolute" then ts:add({"color", "LIGHT_BLUE"}, tostring(math.floor(v)) .. "%", " ", {"color", "LAST"}, t..", ") -- GitLab