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

View File

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