Skip to content

Commit 92086fd

Browse files
committed
Prevent layout not loading if either sp or mp layouts are missing.
1 parent 94c9ad2 commit 92086fd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/classes/User.as

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,10 +1035,11 @@ package classes
10351035

10361036
for each (var key:String in keys)
10371037
{
1038+
if (!data[key])
1039+
continue;
1040+
10381041
if (data[key].constructor.toString().indexOf("Object") != -1)
1039-
{
10401042
out[key] = data[key];
1041-
}
10421043
}
10431044

10441045
return out;

0 commit comments

Comments
 (0)