Hey guys. I really don’t know what to do anymore. I am getting an error while compiling.
Can someone please help me to fix it? The console says that the issue is “Inventory”
(Error: Pointer-to-incomplete class type is not allowed)
(The lines)
Hey guys. I really don’t know what to do anymore. I am getting an error while compiling.
Can someone please help me to fix it? The console says that the issue is “Inventory”
(Error: Pointer-to-incomplete class type is not allowed)
(The lines)
That image is very very small, i can’t read the text
You are probably missing an include of the class.
“That image is very very small, i can’t read the text :)”
UTexture2D* ATerraCharacter::GetThumbnailAtInventorySlot(uint8 Slot)
{
if (Inventory[Slot] != NULL)
{
return Inventory[Slot]->PickupThumbnail;
}
else return nullptr;
}
“You are probably missing an include of the class.”
I don’t thinkt that I am missing an include.
I think you might be missing an include as the compiler can’t find the definition of the class. Try adding:
#include "Engine/Texture2D.h"
I tried this out, but it didn’t fix the problem.
My guess is that you are missing the header for your Inventory
class.