Unreal is crashing on adding Unique NetID to the Array


Its crashing only when someones is joins the lobby. Custom event “Update” is called from the gamemode event OnPostLogin.

Crash log says this: Assertion failed: ArrayNum < ShadowArrayNum || SharedParams.Cmds[CmdIndex + 1].Type == ERepLayoutCmdType::DynamicArray [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/RepLayout.cpp] [Line: 1585]