Skip to content

Commit 3db6ce2

Browse files
committed
fixed malformed player account id
1 parent fc1d549 commit 3db6ce2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Managers/Multiplayer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,11 @@ public static (byte[] serializedGameState, string gameSettingsJson) CreateMultip
313313
PlayerData player = settings.GetPlayer(index);
314314
if (player.type != PlayerDataType.Bot)
315315
{
316-
Il2CppSystem.Nullable<Il2CppSystem.Guid> nullableGuid = new()
316+
var nullableGuid = new Il2CppSystem.Nullable<Il2CppSystem.Guid>(player.profile.id);
317+
if (!nullableGuid.HasValue)
317318
{
318-
value = player.profile.id
319-
};
319+
throw new Exception("GUID was not set properly!");
320+
}
320321
PlayerState playerState = new PlayerState()
321322
{
322323
Id = (byte)(index + 1),

0 commit comments

Comments
 (0)