Skip to content

Commit

Permalink
fix: exercise error log (opentibiabr#2575)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospess0a authored Apr 27, 2024
1 parent a820101 commit 6094875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/scripts/actions/items/exercise_training_weapons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ end
local exerciseTraining = Action()

function exerciseTraining.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if not target or not target:getId() then
if not target or type(target) == "table" or not target:getId() then
return true
end

Expand Down

0 comments on commit 6094875

Please sign in to comment.