small fix for x64

This commit is contained in:
d1str4ught
2025-08-19 18:48:59 +02:00
parent 61a04096ee
commit a09b1b4eea
2 changed files with 5 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
#include "StdAfx.h" #include "StdAfx.h"
#include "Material.h" #include "Material.h"
#include "Mesh.h" #include "Mesh.h"
#include "../eterbase/Filename.h" #include "Eterbase/Filename.h"
#include "../eterlib/ResourceManager.h" #include "Eterlib/ResourceManager.h"
#include "../eterlib/StateManager.h" #include "Eterlib/StateManager.h"
#include "../eterlib/GrpScreen.h" #include "Eterlib/GrpScreen.h"
CGraphicImageInstance CGrannyMaterial::ms_akSphereMapInstance[SPHEREMAP_NUM]; CGraphicImageInstance CGrannyMaterial::ms_akSphereMapInstance[SPHEREMAP_NUM];

View File

@@ -196,7 +196,7 @@ bool CGrannyModel::LoadMeshs()
} }
m_bHaveBlendThing |= rMesh.HaveBlendThing(); m_bHaveBlendThing |= rMesh.HaveBlendThing();
granny_int32x grni32xTypeCount = GrannyGetTotalTypeSize(pgrnMesh->PrimaryVertexData->VertexType) / 32; granny_int32x grni32xTypeCount = GrannyGetTotalTypeSize(pgrnMesh->PrimaryVertexData->VertexType) / sizeof(granny_vertex_data);
int i = 0; int i = 0;
while (i < grni32xTypeCount) while (i < grni32xTypeCount)
{ {