rewrote memory system entirely (hunk, cache, and zone are gone, memory pools replaced...
[xonotic/darkplaces.git] / portals.c
index 3575298..1ad130c 100644 (file)
--- a/portals.c
+++ b/portals.c
@@ -203,6 +203,7 @@ int Portal_CheckPolygon(model_t *model, vec3_t eye, float *polypoints, int numpo
 
        portal_markid++;
 
+       Mod_CheckLoaded(model);
        Portal_PolygonRecursiveMarkLeafs(model->nodes, polypoints, numpoints);
 
        eyeleaf = Mod_PointInLeaf(eye, model);