[IGfxWorld] Fix portal importing

This commit is contained in:
momo5502 2016-12-26 02:27:54 +01:00
parent 4f608b3a19
commit 3406baca4d

View File

@ -81,7 +81,10 @@ namespace Assets
for (int j = 0; j < cell->portalCount; ++j)
{
cell->portals[i].vertices = reader.readArray<Game::vec3_t>(cell->portals[i].vertexCount);
if (cell->portals[j].vertices)
{
cell->portals[j].vertices = reader.readArray<Game::vec3_t>(cell->portals[j].vertexCount & 0xFF);
}
}
}