Apply suggestions from code review

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
This commit is contained in:
Joshua Peisach 2025-06-19 10:18:43 -04:00 committed by GitHub
parent e1bfa6b058
commit eba57df515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -95,14 +95,14 @@ inline Result MeshDeepClone(MeshImpl::MeshData* pSource, MeshImpl::MeshData*& rp
// Query information from old group
DWORD dataSize;
DWORD vcount, fcount, vperface;
unsigned int vcount, fcount, vperface;
Result result =
ResultVal(pSource->groupMesh->GetGroup(pSource->groupIndex, &vcount, &fcount, &vperface, &dataSize, NULL));
assert(Succeeded(result));
DWORD* faceBuffer = new DWORD[dataSize];
unsigned int* faceBuffer = new unsigned int[dataSize];
result =
ResultVal(pSource->groupMesh->GetGroup(pSource->groupIndex, &vcount, &fcount, &vperface, &dataSize, faceBuffer)
);

View File

@ -63,7 +63,7 @@ inline Result CreateMesh(
int count = faceCount * 3;
int index = 0;
DWORD* fData = new DWORD[count];
unsigned int* fData = new unsigned int[count];
D3DRMVERTEX* vertices = new D3DRMVERTEX[vertexCount];
memset(vertices, 0, sizeof(*vertices) * vertexCount);