Skip to content

Commit 228039f

Browse files
committed
Check if playerId is not nil for GetPlayer
1 parent 41a6261 commit 228039f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/VoiceManager.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ end
100100
---@return ServerPlayer
101101
function VoiceManager:GetPlayer(playerId)
102102

103-
if DoesPlayerExist(playerId) then
103+
if playerId ~= nil and DoesPlayerExist(playerId) then
104104
return ServerPlayer.new(playerId)
105105
end
106106

0 commit comments

Comments
 (0)