left operand must be l-value

Hi im getting this error

error C2106: '=' : left operand must be l-value


basically i create a structure

1
2
3
4
5
struct MD2vertex
{
	Vec3f vert;
	Vec3f normal;
};

then i declare a few

struct MD2vertex *pvert1, *pvert2, *pvert3;

then i give one a value

pvert1 = &pframe1->vert[triangles[i].vert[j]];

then i try and assign that value to the other

pvert3->vert[0] = pvert1->vert[0] + 1;

its this last bit that throws up the error any ideas?
What type is Vec3f?
Topic archived. No new replies allowed.