FFastArraySerializer won't replicate remove in TArray [ev. solution]

Hi all,

wanted to share something that bothered me some hours, so ev. it might help you save time.

I had a problem FFastArraySerializer where removing items from the array was not replicated back to the client. Experimenting with RemoveSingle, RemoveAtSwap, nothing helped. MarkArrayDirty was present in all tries. Adding items, changing item values, all worked fine and was replicated, only removing never wanted to go to the client.

Adding the macro line with MARK_PROPERTY_DIRTY_FROM_NAME solved that finally for me.

					//reduced amount to 0 so remove..
					//Inventory.Items.RemoveSingle(ItemToRemove);
					//Inventory.MarkArrayDirty();
					int32 Index = Inventory.Items.IndexOfByKey(ItemToRemove);
					if (Index != INDEX_NONE)
					{
						Inventory.Items.RemoveAtSwap(Index);
						Inventory.MarkArrayDirty();
						MARK_PROPERTY_DIRTY_FROM_NAME(UBEInventoryComponent, Inventory, this);
						ClientOnItemRemoved(ItemToRemove);
					}