Skip to content

Commit 04c8548

Browse files
committed
Houdini Engine for 3ds Max:
* Fixed crash that could occur when marshalling edge selections
1 parent 2991cfd commit 04c8548

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HEMAX_Mesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ HEMAX_Mesh::MarshallDataInto3dsMaxMNMesh(MNMesh& MaxMesh)
14471447
EdgeSelections.SetSize(MaxMesh.ENum());
14481448
EdgeSelections.ClearAll();
14491449

1450-
for (unsigned int e = 0; e < EdgeSelectionsList.DataSize() - 1; e += 2)
1450+
for (long long int e = 0; e < static_cast<int>(EdgeSelectionsList.DataSize()) - 1; e += 2)
14511451
{
14521452
int EdgeToSelect = MaxMesh.FindEdgeFromVertToVert(
14531453
EdgeSelectionsList.Data()[e], EdgeSelectionsList.Data()[e+1]);

src/HEMAX_Mesh.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class HEMAX_MeshList
2929
std::vector<T> Value(int Index);
3030
unsigned int DataSize();
3131
unsigned int DataTupleSize();
32-
HAPI_AttributeOwner DataOwner();
32+
HAPI_AttributeOwner DataOwner();
3333

3434
void MergeEqualTuples();
3535

0 commit comments

Comments
 (0)