Skip to content

Commit bd7a2fc

Browse files
author
billsonnn
committed
Updates
1 parent 917cba1 commit bd7a2fc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Turbo.Rooms/Wired/Variables/User/UserVariable.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ protected virtual bool TryGetAvatarForKey(in WiredVariableKey key, out TAvatar?
2929
avatar = default;
3030

3131
if (
32-
!_roomGrain._state.AvatarsByPlayerId.TryGetValue(key.TargetId, out var found)
33-
|| !_roomGrain._state.AvatarsByObjectId.TryGetValue(found, out var avatarObj)
34-
|| avatarObj is not TAvatar typed
32+
!_roomGrain._state.AvatarsByObjectId.TryGetValue(key.TargetId, out var found)
33+
|| found is not TAvatar typed
3534
)
3635
return false;
3736

0 commit comments

Comments
 (0)