Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

NextRecord can be nil when accessed  #5

@KendallCole

Description

@KendallCole

Line 212 of https://github.com/1Axen/Secure-Cast/blob/main/src/Simulation/init.lua can sometimes error if NextRecord is null.

Line 218's null check should come first i.e.

--> Previous record is guaranteed to exist due to it being in the grid
if not NextRecord then
	continue
end

--> Avoid checking teammates
local Player = NextRecord.Player or PreviousRecord.Player
if Player and IsPlayerFriendly(Caster, Player) then
	continue
end

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