Fixed unknown .displayName after startup

This commit is contained in:
Tercio Jose
2022-09-26 22:10:46 -03:00
parent 2432bc6919
commit bc481bef48
+6 -2
View File
@@ -117,8 +117,12 @@ do
end
function Details:SetDisplayName(actor, newDisplayName)
local thisActor = self.displayName and self or actor
thisActor.displayName = newDisplayName
if (not newDisplayName) then
newDisplayName = actor
self.displayName = newDisplayName
else
actor.displayName = newDisplayName
end
end
function _detalhes:GetOnlyName (string)