Signed/Unsigned fixes

This commit is contained in:
Louvenarde 2023-10-21 19:38:12 +02:00
parent dba32e4047
commit c45aaf62b7
2 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ namespace Assets
if (asset->names) if (asset->names)
{ {
for (char i = 0; i < asset->boneCount[Game::PART_TYPE_ALL]; ++i) for (unsigned char i = 0; i < asset->boneCount[Game::PART_TYPE_ALL]; ++i)
{ {
builder->addScriptString(asset->names[i]); builder->addScriptString(asset->names[i]);
} }
@ -22,7 +22,7 @@ namespace Assets
if (asset->notify) if (asset->notify)
{ {
for (char i = 0; i < asset->notifyCount; ++i) for (unsigned char i = 0; i < asset->notifyCount; ++i)
{ {
builder->addScriptString(asset->notify[i].name); builder->addScriptString(asset->notify[i].name);
} }
@ -165,7 +165,7 @@ namespace Assets
unsigned short* destTagnames = buffer->dest<unsigned short>(); unsigned short* destTagnames = buffer->dest<unsigned short>();
buffer->saveArray(asset->names, asset->boneCount[Game::PART_TYPE_ALL]); buffer->saveArray(asset->names, asset->boneCount[Game::PART_TYPE_ALL]);
for (char i = 0; i < asset->boneCount[Game::PART_TYPE_ALL]; ++i) for (unsigned char i = 0; i < asset->boneCount[Game::PART_TYPE_ALL]; ++i)
{ {
builder->mapScriptString(destTagnames[i]); builder->mapScriptString(destTagnames[i]);
} }
@ -181,7 +181,7 @@ namespace Assets
Game::XAnimNotifyInfo* destNotetracks = buffer->dest<Game::XAnimNotifyInfo>(); Game::XAnimNotifyInfo* destNotetracks = buffer->dest<Game::XAnimNotifyInfo>();
buffer->saveArray(asset->notify, asset->notifyCount); buffer->saveArray(asset->notify, asset->notifyCount);
for (char i = 0; i < asset->notifyCount; ++i) for (unsigned char i = 0; i < asset->notifyCount; ++i)
{ {
builder->mapScriptString(destNotetracks[i].name); builder->mapScriptString(destNotetracks[i].name);
} }

View File

@ -1044,8 +1044,8 @@ namespace Game
unsigned __int16 randomDataIntCount; unsigned __int16 randomDataIntCount;
unsigned __int16 numframes; unsigned __int16 numframes;
char flags; char flags;
char boneCount[10]; unsigned char boneCount[10];
char notifyCount; unsigned char notifyCount;
char assetType; char assetType;
bool isDefault; bool isDefault;
unsigned int randomDataShortCount; unsigned int randomDataShortCount;