I edited my previous post a bit, and updated how i am calling SpawnActor. I noticed that AActor::GetActorClass() is depreciated. Also, i never got a compile error when writing without template params… not sure why.
The error i now get on compile is:
error C2663: 'TArray<AAStar *,FDefaultAllocator>::Add': 2 overloads have no legal conversion for 'this' pointer
Also, in the intellisense for TArray::Add() i see 2 overloads with the following params:
Add(AAStar *const &Item)
Add(AAStar *&&Item)
How am i supposed to read those params? Pointer to a constant address of item? Pointer to an address of an address? What is that? How do i understand that? Coming from C# i hate C++ intellisense, in 90% of the time it is not helpful… and very slow.
I don’t know how to add a simple pointer to my dynamic array of pointers. This is lame…