From 697fa5bb2814d7195c44b3876effc6b8230cf63f Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Sun, 30 Dec 2012 22:26:42 +0000
Subject: [PATCH] fix

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

diff --git a/game/modules/tome/class/Actor.lua b/game/modules/tome/class/Actor.lua
index a52b3b0da1..0a8088e4b4 100644
--- a/game/modules/tome/class/Actor.lua
+++ b/game/modules/tome/class/Actor.lua
@@ -4174,10 +4174,10 @@ function _M:canSeeNoCache(actor, def, def_pct)
 		local esp = self.esp
 		local t, st = rawget(actor, "type") or "???", rawget(actor, "subtype") or "???"
 		-- Type based ESP
-		if esp[actor.type] and esp[actor.type] > 0 then
+		if esp[t] and esp[t] > 0 then
 			return true, 100
 		end
-		if esp[actor.type.."/"..actor.subtype] and esp[actor.type.."/"..actor.subtype] > 0 then
+		if esp[t.."/"..st] and esp[t.."/"..st] > 0 then
 			return true, 100
 		end
 	end
-- 
GitLab