mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-30 16:58:38 +00:00
Change name of anonymous variable so it doesn't overwrite local variable
This commit is contained in:
parent
c9784cf8c9
commit
bc83d1e9f5
1 changed files with 2 additions and 2 deletions
|
@ -246,12 +246,12 @@ public class GameUserSlot : SlotBase, INeedsPreparationForSerialization
|
||||||
AuthorPhotoCount = database.Photos.Count(p => p.SlotId == this.SlotId && p.CreatorId == this.CreatorId),
|
AuthorPhotoCount = database.Photos.Count(p => p.SlotId == this.SlotId && p.CreatorId == this.CreatorId),
|
||||||
HeartCount = database.HeartedLevels.Count(h => h.SlotId == this.SlotId),
|
HeartCount = database.HeartedLevels.Count(h => h.SlotId == this.SlotId),
|
||||||
Username = database.Users.Where(u => u.UserId == this.CreatorId).Select(u => u.Username).First(),
|
Username = database.Users.Where(u => u.UserId == this.CreatorId).Select(u => u.Username).First(),
|
||||||
IconHash = database.Users.Where(u => u.UserId == this.CreatorId).Select(u => u.IconHash).First(),
|
UserIcon = database.Users.Where(u => u.UserId == this.CreatorId).Select(u => u.IconHash).First(),
|
||||||
})
|
})
|
||||||
.OrderBy(_ => 1)
|
.OrderBy(_ => 1)
|
||||||
.FirstAsync();
|
.FirstAsync();
|
||||||
ReflectionHelper.CopyAllFields(stats, this);
|
ReflectionHelper.CopyAllFields(stats, this);
|
||||||
this.AuthorHandle = new NpHandle(stats.Username, stats.IconHash);
|
this.AuthorHandle = new NpHandle(stats.Username, stats.UserIcon);
|
||||||
|
|
||||||
if (this.GameVersion == GameVersion.LittleBigPlanet1)
|
if (this.GameVersion == GameVersion.LittleBigPlanet1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue