Skip to content

Buffed Trust NPC despawn crashes addon #11

@CodeGordon

Description

@CodeGordon

if (t_entity and t_entity.ServerId) ~= (a_entity and a_entity.ServerId) then

This causes the addon to crash with the error attempt to index local 't_entity' (a nil value) when a buff is cast on a Trust when they despawn. The fix is the following:

if (t_entity and a_entity and (t_entity.ServerId ~= a_entity.ServerId)) then

This will cause the buff to properly clear out of the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions