[IXModel] Fix surfs sign

This commit is contained in:
momo5502 2017-03-25 13:42:21 +01:00
parent 3e509e1b1d
commit 576b07891e
2 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ namespace Assets
{
asset->materialHandles = reader.readArray<Game::Material*>(asset->numsurfs);
for (char i = 0; i < asset->numsurfs; ++i)
for (unsigned char i = 0; i < asset->numsurfs; ++i)
{
if (asset->materialHandles[i])
{
@ -320,7 +320,7 @@ namespace Assets
if (asset->materialHandles)
{
for (char i = 0; i < asset->numsurfs; ++i)
for (unsigned char i = 0; i < asset->numsurfs; ++i)
{
if (asset->materialHandles[i])
{
@ -422,7 +422,7 @@ namespace Assets
Game::Material** destMaterials = buffer->dest<Game::Material*>();
buffer->saveArray(asset->materialHandles, asset->numsurfs);
for (char i = 0; i < asset->numsurfs; ++i)
for (unsigned char i = 0; i < asset->numsurfs; ++i)
{
if (asset->materialHandles[i])
{

View File

@ -1797,7 +1797,7 @@ namespace Game
const char *name;
char numBones;
char numRootBones;
char numsurfs;
unsigned char numsurfs;
char lodRampType;
float scale;
unsigned int noScalePartBits[6];