Signed/Unsigned fixes
This commit is contained in:
parent
dba32e4047
commit
c45aaf62b7
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user