Skip to content

Commit

Permalink
Prevent layout not loading if either sp or mp layouts are missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycast committed Mar 21, 2024
1 parent 94c9ad2 commit 92086fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/classes/User.as
Original file line number Diff line number Diff line change
Expand Up @@ -1035,10 +1035,11 @@ package classes

for each (var key:String in keys)
{
if (!data[key])
continue;

if (data[key].constructor.toString().indexOf("Object") != -1)
{
out[key] = data[key];
}
}

return out;
Expand Down

0 comments on commit 92086fd

Please sign in to comment.