Update HMPLoader.cpp

pull/4359/head
Kim Kulling 2022-01-26 19:42:09 +01:00 committed by GitHub
parent 305d1f45aa
commit f217bd4b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -385,7 +385,10 @@ void HMPImporter::CreateOutputFaceList(unsigned int width, unsigned int height)
for (unsigned int x = 0; x < width - 1; ++x, ++pcFaceOut) {
pcFaceOut->mNumIndices = 4;
pcFaceOut->mIndices = new unsigned int[4];
if ((offset + x + 1) >= upperBound){
if ((offset0 + x + 1) >= upperBound){
continue;
}
if ((offset1 + x + 1) >= upperBound){
continue;
}