Make sure seg/node arrays are invalidated in LUA_InvalidateLevel

(I'll fix sector.lines and ffloors and other things I missed in the public repo)
This commit is contained in:
Monster Iestyn 2016-07-08 20:43:02 +01:00
parent 4c723d05ac
commit f2b3640c6a

View file

@ -416,6 +416,14 @@ void LUA_InvalidateLevel(void)
LUA_InvalidateUserdata(&sides[i]); LUA_InvalidateUserdata(&sides[i]);
for (i = 0; i < numvertexes; i++) for (i = 0; i < numvertexes; i++)
LUA_InvalidateUserdata(&vertexes[i]); LUA_InvalidateUserdata(&vertexes[i]);
for (i = 0; i < numsegs; i++)
LUA_InvalidateUserdata(&segs[i]);
for (i = 0; i < numnodes; i++)
{
LUA_InvalidateUserdata(&nodes[i]);
LUA_InvalidateUserdata(nodes[i].bbox);
LUA_InvalidateUserdata(nodes[i].children);
}
} }
void LUA_InvalidateMapthings(void) void LUA_InvalidateMapthings(void)