I have a small(?) problem here:

Code:
typedef struct
{
	VECTOR3D n;
	float d;
} Plane;

typedef struct
{
	Plane* plane;
	int size;
} VecPlane;

void planesSetSize(VecPlane* p, const int csize)
{
	if (p != NULL)
	{
		if (csize != p->size)
		{
			*p->plane = (Plane*)realloc(p->plane, csize*sizeof(Plane));
			*p->size = csize;
		}
	}
}



when compiling i get
Quote:
"can not convert 'POINTER' to 'struct Plane'"

for *p->plane = (Plane*)realloc(p->plane, csize*sizeof(Plane));

and
Quote:
illegal indirection

for *p->size = csize;


Tried a lot of combinations with () and * but so far none worked wink

Any help appreciated laugh


Shade-C EVO Lite-C Shader Framework