From 35e4c2efb6e1d26c507ea0312d69e058b4302c3c Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Fri, 28 Dec 2012 19:58:08 +0000
Subject: [PATCH] fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@6267 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/interface/PartyLore.lua | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/game/modules/tome/class/interface/PartyLore.lua b/game/modules/tome/class/interface/PartyLore.lua
index 585bf48156..10f3e6752a 100644
--- a/game/modules/tome/class/interface/PartyLore.lua
+++ b/game/modules/tome/class/interface/PartyLore.lua
@@ -57,10 +57,12 @@ function _M:init(t)
 end
 
 function _M:knownLore(lore)
+	self.lore_known = self.lore_known or {}
 	return self.lore_known[lore] and true or false
 end
 
 function _M:getLore(lore, silent)
+	self.lore_known = self.lore_known or {}
 	self.additional_lore = self.additional_lore or {}
 	if not silent then assert(self.lore_defs[lore] or self.additional_lore[lore], "bad lore id "..lore) end
 	return self.lore_defs[lore] or self.additional_lore[lore]
@@ -78,6 +80,8 @@ function _M:learnLore(lore, nopopup, silent, nostop)
 	if not l then return end
 	local learnt = false
 
+	self.lore_known = self.lore_known or {}
+
 	if not config.settings.tome.lore_popup and profile.mod.lore and profile.mod.lore.lore and profile.mod.lore.lore[lore] and not l.always_pop then nopopup = true end
 
 	if not self:knownLore(lore) or l.always_pop then
-- 
GitLab