Recast: fix off-mesh connection user id's when loaded from project files

User id's were never assigned when the off-mesh links were loaded from project files.
This commit is contained in:
Kawe Mazidjatari 2024-10-17 13:41:04 +02:00
parent 1e48d8abd9
commit af19a2e5b3

View File

@ -273,6 +273,7 @@ bool InputGeom::loadGeomSet(rcContext* ctx, const std::string& filepath)
m_offMeshConOrders[m_offMeshConCount] = (unsigned char)order;
m_offMeshConAreas[m_offMeshConCount] = (unsigned char)area;
m_offMeshConFlags[m_offMeshConCount] = (unsigned short)flags;
m_offMeshConId[m_offMeshConCount] = 1000 + m_offMeshConCount;
m_offMeshConCount++;
}
}