Skip to content

Commit efcc689

Browse files
committed
Fix possible nil error
1 parent c1a21f4 commit efcc689

File tree

1 file changed

+1
-1
lines changed
  • lua/entities/gmod_wire_expression2/core

1 file changed

+1
-1
lines changed

lua/entities/gmod_wire_expression2/core/timer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ local function luaTimerCreate(self, name, delay, repetitions, callback)
108108
ent:Execute(callback)
109109
end
110110

111-
if timer.RepsLeft(internalName) == 0 then
111+
if timer.RepsLeft(internalName) == 0 and luaTimers[entIndex] then
112112
luaTimers[entIndex][name] = nil
113113
end
114114
end)

0 commit comments

Comments
 (0)