From de14aa0b07e8be18d94c06fd8ace9f6117a61528 Mon Sep 17 00:00:00 2001 From: "Hristos N. Triantafillou" Date: Sat, 15 Jun 2019 19:36:23 -0500 Subject: [PATCH] The `currentPlayer` variable is not defined, which causes a crash --- .../server/scripts/custom/lear/trueDisableAssassins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tes3mp-server/server/scripts/custom/lear/trueDisableAssassins.lua b/tes3mp-server/server/scripts/custom/lear/trueDisableAssassins.lua index 76fcfa4..4eb46a5 100644 --- a/tes3mp-server/server/scripts/custom/lear/trueDisableAssassins.lua +++ b/tes3mp-server/server/scripts/custom/lear/trueDisableAssassins.lua @@ -95,7 +95,7 @@ customEventHooks.registerValidator("OnObjectActivate", function(eventStatus, pid end -- Continue with script. - if not tableHelper.containsKeyValuePairs(currentPlayer.data.journal, { quest = "tr_dbattack", index = 10 }, true) then + if not tableHelper.containsKeyValuePairs(Players[pid].data.journal, { quest = "tr_dbattack", index = 10 }, true) then logicHandler.RunConsoleCommandOnPlayer(pid, "stopscript dbAttackScript") if (Players[pid].data.customVariables.lear.questFixes.dbAttackCheck == nil and Players[pid].data.stats.level >= dbAssassinsConfig.levelRequirement) then tes3mp.MessageBox(pid, -1, color.MsgBox .. "Test.")