Skip to content

Commit e391fdb

Browse files
authored
Merge pull request #1459 from Exotic0015/patch-1
Fix: attempt to index field 'pac_command_event_sequencebases'
2 parents 2e3281c + 03d390f commit e391fdb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lua/pac3/core/client/parts/event.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4175,6 +4175,9 @@ net.Receive("pac_event_set_sequence", function(len)
41754175
local ply = net.ReadEntity()
41764176
local event = net.ReadString()
41774177
local num = net.ReadUInt(8)
4178+
4179+
if not ply:IsValid() then return end
4180+
41784181
ply.pac_command_events = ply.pac_command_events or {}
41794182
ply.pac_command_event_sequencebases = ply.pac_command_event_sequencebases or {}
41804183
ply.pac_command_event_sequencebases[event] = ply.pac_command_event_sequencebases[event] or {name = event}

0 commit comments

Comments
 (0)