This commit is contained in:
Applevangelist
2024-07-14 18:48:23 +02:00
parent cfc0cc66b2
commit 9ecaca365f
4 changed files with 17 additions and 10 deletions

View File

@@ -2745,7 +2745,7 @@ do -- Players
local PlayerNames = {}
local Units = self:GetUnits()
for UnitID, UnitData in pairs( Units ) do
for UnitID, UnitData in pairs( Units or {}) do
local Unit = UnitData -- Wrapper.Unit#UNIT
local PlayerName = Unit:GetPlayerName()
if PlayerName and PlayerName ~= "" then