mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 03:59:05 +01:00
Tools/mmaps_generator: Only initialize memory for inds mesh when it will be read (#29795)
* this change does NOT require re-generating mmaps
This commit is contained in:
@@ -397,16 +397,15 @@ namespace MMAP
|
||||
}
|
||||
|
||||
float* verts = new float[verticesCount];
|
||||
int* inds = new int[indicesCount];
|
||||
|
||||
if (fread(verts, sizeof(float), verticesCount, file) != verticesCount)
|
||||
{
|
||||
fclose(file);
|
||||
delete[] verts;
|
||||
delete[] inds;
|
||||
return;
|
||||
}
|
||||
|
||||
int* inds = new int[indicesCount];
|
||||
if (fread(inds, sizeof(int), indicesCount, file) != indicesCount)
|
||||
{
|
||||
fclose(file);
|
||||
|
||||
Reference in New Issue
Block a user