From 9256ff31acf82cf42d8a8cdeabbeeaffbe994ca5 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Tue, 29 Nov 2011 00:03:11 +0000
Subject: [PATCH] fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4696 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/data/talents/psionic/psi-archery.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/data/talents/psionic/psi-archery.lua b/game/modules/tome/data/talents/psionic/psi-archery.lua
index c38c11b3f1..fb45e8e211 100644
--- a/game/modules/tome/data/talents/psionic/psi-archery.lua
+++ b/game/modules/tome/data/talents/psionic/psi-archery.lua
@@ -225,7 +225,8 @@ newTalent{
 		local apr = 0
 		local crit = 0
 		local speed = 1
-		local o = self:getInven("PSIONIC_FOCUS")[1]
+		local inven = self:getInven("PSIONIC_FOCUS")
+		local o = inven and inven[1]
 		if type(o) == "boolean" then o = nil end
 		if not o then
 			return ([[You temporarily set aside a part of you mind to direct your telekinetically-wielded bow. It will automatically attack the nearest target each turn for %d turns.
-- 
GitLab