From 3875314b95cebf66adf5f19f7a958c23a8ce11d7 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Fri, 27 May 2011 13:29:18 +0000
Subject: [PATCH] Fix Arcane Eye at level 5

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

diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua
index 337451da88..2638b540eb 100644
--- a/game/modules/tome/class/Player.lua
+++ b/game/modules/tome/class/Player.lua
@@ -316,7 +316,10 @@ function _M:playerFOV()
 			eff.x, eff.y, game.level.map.w, game.level.map.h, eff.radius, function(_, x, y) if map:checkAllEntities(x, y, "block_sight", self) then return true end end,
 			function(_, x, y)
 				local t = map(x, y, map.ACTOR)
-				if t and (eff.true_seeing or self:canSee(t)) then map.seens(x, y, 1) self.can_see_cache[t]["nil/nil"] = {true,100} end
+				if t and (eff.true_seeing or self:canSee(t)) then
+					map.seens(x, y, 1)
+					if self.can_see_cache[t] then self.can_see_cache[t]["nil/nil"] = {true, 100} end
+				end
 			end,
 			cache and map._fovcache["block_sight"]
 		)
-- 
GitLab