diff --git a/gl_curves.c b/gl_curves.c index 6d5e352..98b34ab 100644 --- a/gl_curves.c +++ b/gl_curves.c @@ -685,7 +685,7 @@ void MESH_CreateCurve(dq3face_t *in, mesh_t *mesh, mapshader_t *shader) //setup rest of the mesh mesh->shader = shader; - mesh->lightmapIndex = in->lightofs; + mesh->lightmapIndex = LittleLong(in->lightofs); CreateCurveIndecies(&curve, mesh); CreateTangentSpace(mesh);