Skip to content

Commit

Permalink
Return boolean on KeywordNode:hasParent()
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-bernardo committed Oct 17, 2024
1 parent 394292e commit e93c8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/npc/lib/npcsystem/keywordhandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if not KeywordHandler then

-- Returns the parent of this node or nil if no such node exists.
function KeywordNode:hasParent()
return self.parent
return self.parent ~= nil
end

function KeywordNode:getParent()
Expand Down

0 comments on commit e93c8f6

Please sign in to comment.