Skip to content

Commit 84f902f

Browse files
authored
[GEN][ZH] Fix compiler warnings for signed/unsigned mismatch of loop indices (#804)
1 parent ce9d3d7 commit 84f902f

File tree

79 files changed

+149
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+149
-149
lines changed

Core/Libraries/Source/WWVegas/WW3D2/pointgr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ void PointGroupClass::RenderVolumeParticle(RenderInfoClass &rinfo, unsigned int
16951695

16961696

16971697
//// VOLUME_PARTICLE LOOP ///////////////
1698-
for ( int t = 0; t < depth; ++t )
1698+
for ( unsigned int t = 0; t < depth; ++t )
16991699
{
17001700

17011701

Generals/Code/GameEngine/Source/Common/PartitionSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void PartitionSolver::solve(void)
7777

7878
Int minSizeForAllData = 0;
7979
Int slotsAllotted = 0;
80-
Int i, j;
80+
size_t i, j;
8181

8282
// first, determine whether there is an actual solution, or we're going to have to fudge it.
8383
for (i = 0; i < m_data.size(); ++i) {

Generals/Code/GameEngine/Source/Common/RTS/ProductionPrerequisite.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void ProductionPrerequisite::init()
8080
//=============================================================================
8181
void ProductionPrerequisite::resolveNames()
8282
{
83-
for (Int i = 0; i < m_prereqUnits.size(); i++)
83+
for (size_t i = 0; i < m_prereqUnits.size(); i++)
8484
{
8585

8686
//
@@ -118,7 +118,7 @@ Int ProductionPrerequisite::calcNumPrereqUnitsOwned(const Player *player, Int co
118118
Int ProductionPrerequisite::getAllPossibleBuildFacilityTemplates(const ThingTemplate* tmpls[], Int maxtmpls) const
119119
{
120120
Int count = 0;
121-
for (int i = 0; i < m_prereqUnits.size(); i++)
121+
for (size_t i = 0; i < m_prereqUnits.size(); i++)
122122
{
123123
if (i > 0 && !(m_prereqUnits[i].flags & UNIT_OR_WITH_PREV))
124124
break;
@@ -213,7 +213,7 @@ void ProductionPrerequisite::addUnitPrereq( AsciiString unit, Bool orUnitWithPre
213213
void ProductionPrerequisite::addUnitPrereq( const std::vector<AsciiString>& units )
214214
{
215215
Bool orWithPrevious = false;
216-
for (int i = 0; i < units.size(); ++i)
216+
for (size_t i = 0; i < units.size(); ++i)
217217
{
218218
addUnitPrereq(units[i], orWithPrevious);
219219
orWithPrevious = true;

Generals/Code/GameEngine/Source/Common/RTS/SpecialPower.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ SpecialPowerStore::~SpecialPowerStore( void )
225225
{
226226

227227
// delete all templates
228-
for( Int i = 0; i < m_specialPowerTemplates.size(); ++i )
228+
for( size_t i = 0; i < m_specialPowerTemplates.size(); ++i )
229229
deleteInstance(m_specialPowerTemplates[ i ]);
230230

231231
// erase the list
@@ -242,7 +242,7 @@ SpecialPowerTemplate* SpecialPowerStore::findSpecialPowerTemplatePrivate( AsciiS
242242
{
243243

244244
// search the template list for matching name
245-
for( Int i = 0; i < m_specialPowerTemplates.size(); ++i )
245+
for( size_t i = 0; i < m_specialPowerTemplates.size(); ++i )
246246
if( m_specialPowerTemplates[ i ]->getName() == name )
247247
return m_specialPowerTemplates[ i ];
248248

@@ -257,7 +257,7 @@ const SpecialPowerTemplate *SpecialPowerStore::findSpecialPowerTemplateByID( Uns
257257
{
258258

259259
// search the template list for matching name
260-
for( Int i = 0; i < m_specialPowerTemplates.size(); ++i )
260+
for( size_t i = 0; i < m_specialPowerTemplates.size(); ++i )
261261
if( m_specialPowerTemplates[ i ]->getID() == id )
262262
return m_specialPowerTemplates[ i ];
263263

Generals/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static void findHighFileNumber( AsciiString filename, void *userData )
413413

414414
// strip off the extension at the end of the filename
415415
AsciiString nameOnly = filename;
416-
for( Int count = 0; count < strlen( SAVE_GAME_EXTENSION ); count++ )
416+
for( size_t count = 0; count < strlen( SAVE_GAME_EXTENSION ); count++ )
417417
nameOnly.removeLastChar();
418418

419419
// convert filename (which is only numbers) to a number

Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3309,7 +3309,7 @@ void ControlBar::populateSpecialPowerShortcut( Player *player)
33093309
//button specifying a vector of sciences in the command button.
33103310
Int bestIndex = -1;
33113311
ScienceType science;
3312-
for( Int scienceIndex = 0; scienceIndex < commandButton->getScienceVec().size(); ++scienceIndex )
3312+
for( size_t scienceIndex = 0; scienceIndex < commandButton->getScienceVec().size(); ++scienceIndex )
33133313
{
33143314
science = commandButton->getScienceVec()[ scienceIndex ];
33153315

Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ void ControlBar::populateCommand( Object *obj )
364364
//button specifying a vector of sciences in the command button.
365365
Int bestIndex = -1;
366366
ScienceType science;
367-
for( Int scienceIndex = 0; scienceIndex < commandButton->getScienceVec().size(); ++scienceIndex )
367+
for( size_t scienceIndex = 0; scienceIndex < commandButton->getScienceVec().size(); ++scienceIndex )
368368
{
369369
science = commandButton->getScienceVec()[ scienceIndex ];
370370

Generals/Code/GameEngine/Source/GameClient/GUI/ControlBar/ControlBarCommandProcessing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ CBCommandStatus ControlBar::processCommandUI( GameWindow *control,
699699

700700
ScienceType st = SCIENCE_INVALID;
701701
Player *player = ThePlayerList->getLocalPlayer();
702-
for(Int i = 0; i < commandButton->getScienceVec().size(); ++i)
702+
for(size_t i = 0; i < commandButton->getScienceVec().size(); ++i)
703703
{
704704
st = commandButton->getScienceVec()[ i ];
705705
if(!player->hasScience(st) && TheScienceStore->playerHasPrereqsForScience(player, st) && TheScienceStore->getSciencePurchaseCost(st) <= player->getSciencePurchasePoints())

Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/ControlBarPopupDescription.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void ControlBar::populateBuildTooltipLayout( const CommandButton *commandButton,
266266
ScienceType st = SCIENCE_INVALID;
267267
if(commandButton->getScienceVec().size() > 1)
268268
{
269-
for(Int j = 0; j < commandButton->getScienceVec().size(); ++j)
269+
for(size_t j = 0; j < commandButton->getScienceVec().size(); ++j)
270270
{
271271
st = commandButton->getScienceVec()[ j ];
272272

Generals/Code/GameEngine/Source/GameClient/GameClient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ GameClient::~GameClient()
213213
TheVideoPlayer = NULL;
214214

215215
// destroy all translators
216-
for( Int i = 0; i < m_numTranslators; i++ )
216+
for( UnsignedInt i = 0; i < m_numTranslators; i++ )
217217
TheMessageStream->removeTranslator( m_translators[ i ] );
218218
m_numTranslators = 0;
219219
m_commandTranslator = NULL;
@@ -1079,7 +1079,7 @@ void GameClient::preloadAssets( TimeOfDay timeOfDay )
10791079

10801080
GlobalMemoryStatus(&before);
10811081
extern std::vector<AsciiString> debrisModelNamesGlobalHack;
1082-
Int i=0;
1082+
size_t i=0;
10831083
for (; i<debrisModelNamesGlobalHack.size(); ++i)
10841084
{
10851085
TheDisplay->preloadModelAssets(debrisModelNamesGlobalHack[i]);

Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3416,7 +3416,7 @@ void InGameUI::postDraw( void )
34163416
UnsignedByte r, g, b, a;
34173417
GameGetColorComponents( m_militarySubtitle->color, &r, &g, &b, &a );
34183418
dropColor = GameMakeColor( 0, 0, 0, a );
3419-
for(Int i = 0; i <= m_militarySubtitle->currentDisplayString; i++)
3419+
for(UnsignedInt i = 0; i <= m_militarySubtitle->currentDisplayString; i++)
34203420
{
34213421
m_militarySubtitle->displayStrings[i]->draw(pos.x,pos.y, m_militarySubtitle->color,dropColor );
34223422
Int height;
@@ -3984,7 +3984,7 @@ void InGameUI::removeMilitarySubtitle( void )
39843984
TheInGameUI->clearTooltipsDisabled();
39853985

39863986
// loop through and free up the display strings
3987-
for(Int i = 0; i <= m_militarySubtitle->currentDisplayString; i ++)
3987+
for(UnsignedInt i = 0; i <= m_militarySubtitle->currentDisplayString; i ++)
39883988
{
39893989
TheDisplayStringManager->freeDisplayString(m_militarySubtitle->displayStrings[i]);
39903990
m_militarySubtitle->displayStrings[i] = NULL;

Generals/Code/GameEngine/Source/GameClient/MapUtil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ Bool MapCache::loadUserMaps()
577577
{
578578
AsciiString endingStr;
579579
AsciiString fname = s+1;
580-
for (Int i=0; i<strlen(mapExtension); ++i)
580+
for (size_t i=0; i<strlen(mapExtension); ++i)
581581
fname.removeLastChar();
582582

583583
endingStr.format("%s\\%s%s", fname.str(), fname.str(), mapExtension);

Generals/Code/GameEngine/Source/GameClient/MessageStream/CommandXlat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4270,7 +4270,7 @@ GameMessageDisposition CommandTranslator::translateGameMessage(const GameMessage
42704270
{
42714271
// cheese festival: do NOT imitate this code. it is for debug purposes only.
42724272
std::vector<AsciiString> v = TheScienceStore->friend_getScienceNames();
4273-
for (int i = 0; i < v.size(); ++i)
4273+
for (size_t i = 0; i < v.size(); ++i)
42744274
{
42754275
ScienceType st = TheScienceStore->getScienceFromInternalName(v[i]);
42764276
if (st != SCIENCE_INVALID && TheScienceStore->isScienceGrantable(st))

Generals/Code/GameEngine/Source/GameLogic/Object/Behavior/DumbProjectileBehavior.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ UpdateSleepTime DumbProjectileBehavior::update()
678678
void DumbProjectileBehavior::displayFlightPath()
679679
{
680680
extern void addIcon(const Coord3D *pos, Real width, Int numFramesDuration, RGBColor color);
681-
for( Int pointIndex = 0; pointIndex < m_flightPath.size(); ++pointIndex )
681+
for( size_t pointIndex = 0; pointIndex < m_flightPath.size(); ++pointIndex )
682682
{
683683
addIcon(&m_flightPath[pointIndex], TheGlobalData->m_debugProjectileTileWidth,
684684
TheGlobalData->m_debugProjectileTileDuration,

Generals/Code/GameEngine/Source/GameLogic/Object/Behavior/InstantDeathBehavior.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ void InstantDeathBehavior::onDie( const DamageInfo *damageInfo )
136136

137137
const InstantDeathBehaviorModuleData* d = getInstantDeathBehaviorModuleData();
138138

139-
Int idx, listSize;
139+
size_t idx, listSize;
140140

141141
listSize = d->m_fx.size();
142142
if (listSize > 0)
143143
{
144-
idx = GameLogicRandomValue(0, listSize-1);
144+
idx = (size_t)GameLogicRandomValue(0, listSize-1);
145145
const FXListVec& v = d->m_fx;
146146
DEBUG_ASSERTCRASH(idx>=0&&idx<v.size(),("bad idx"));
147147
const FXList* fxl = v[idx];
@@ -151,7 +151,7 @@ void InstantDeathBehavior::onDie( const DamageInfo *damageInfo )
151151
listSize = d->m_ocls.size();
152152
if (listSize > 0)
153153
{
154-
idx = GameLogicRandomValue(0, listSize-1);
154+
idx = (size_t)GameLogicRandomValue(0, listSize-1);
155155
const OCLVec& v = d->m_ocls;
156156
DEBUG_ASSERTCRASH(idx>=0&&idx<v.size(),("bad idx"));
157157
const ObjectCreationList* ocl = v[idx];
@@ -161,7 +161,7 @@ void InstantDeathBehavior::onDie( const DamageInfo *damageInfo )
161161
listSize = d->m_weapons.size();
162162
if (listSize > 0)
163163
{
164-
idx = GameLogicRandomValue(0, listSize-1);
164+
idx = (size_t)GameLogicRandomValue(0, listSize-1);
165165
const WeaponTemplateVec& v = d->m_weapons;
166166
DEBUG_ASSERTCRASH(idx>=0&&idx<v.size(),("bad idx"));
167167
const WeaponTemplate* wt = v[idx];

Generals/Code/GameEngine/Source/GameLogic/Object/Collide/CrateCollide/UnitCrateCollide.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Bool UnitCrateCollide::executeCrateBehavior( Object *other )
6363
return FALSE;
6464
}
6565

66-
for( Int unitIndex = 0; unitIndex < unitCount; unitIndex++ )
66+
for( UnsignedInt unitIndex = 0; unitIndex < unitCount; unitIndex++ )
6767
{
6868
Team *creationTeam = other->getControllingPlayer()->getDefaultTeam();
6969
Object *newObj = TheThingFactory->newObject( unitType, creationTeam );

Generals/Code/GameEngine/Source/GameLogic/Object/Locomotor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ void LocomotorSet::xferSelfAndCurLocoPtr(Xfer *xfer, Locomotor** loco)
27062706
}
27072707
else
27082708
{
2709-
for (int i = 0; i < m_locomotors.size(); ++i)
2709+
for (size_t i = 0; i < m_locomotors.size(); ++i)
27102710
{
27112711
if (m_locomotors[i]->getTemplateName() == name)
27122712
{
@@ -2724,7 +2724,7 @@ void LocomotorSet::xferSelfAndCurLocoPtr(Xfer *xfer, Locomotor** loco)
27242724
//-------------------------------------------------------------------------------------------------
27252725
void LocomotorSet::clear()
27262726
{
2727-
for (int i = 0; i < m_locomotors.size(); ++i)
2727+
for (size_t i = 0; i < m_locomotors.size(); ++i)
27282728
{
27292729
if (m_locomotors[i])
27302730
deleteInstance(m_locomotors[i]);

Generals/Code/GameEngine/Source/GameLogic/Object/ObjectCreationList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class DeliverPayloadNugget : public ObjectCreationNugget
313313
}
314314

315315
Object *firstTransport = NULL;
316-
for( Int formationIndex = 0; formationIndex < m_formationSize; formationIndex++ )
316+
for( UnsignedInt formationIndex = 0; formationIndex < m_formationSize; formationIndex++ )
317317
{
318318
Coord3D offset;
319319
offset.zero();

Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ Bool AIUpdateInterface::chooseLocomotorSetExplicit(LocomotorSetType wst)
835835
{
836836
m_locomotorSet.clear();
837837
m_curLocomotor = NULL;
838-
for (Int i = 0; i < set->size(); ++i)
838+
for (size_t i = 0; i < set->size(); ++i)
839839
{
840840
const LocomotorTemplate* lt = set->at(i);
841841
if (lt)

Generals/Code/GameEngine/Source/GameLogic/Object/Update/AIUpdate/ChinookAIUpdate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ class ChinookCombatDropState : public State
656656
}
657657

658658
UnsignedInt now = TheGameLogic->getFrame();
659-
for (Int i = 0; i < m_ropes.size(); ++i)
659+
for (size_t i = 0; i < m_ropes.size(); ++i)
660660
{
661661
if (m_ropes[i].ropeDrawable)
662662
{

Generals/Code/GameEngine/Source/GameLogic/Object/Update/DockUpdate/DockUpdate.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ DockUpdate::DockUpdate( Thing *thing, const ModuleData* moduleData ) : UpdateMod
9696
m_approachPositionReached.resize(DEFAULT_APPROACH_VECTOR_SIZE);
9797
}
9898

99-
for( Int vectorIndex = 0; vectorIndex < m_approachPositions.size(); ++vectorIndex )
99+
for( size_t vectorIndex = 0; vectorIndex < m_approachPositions.size(); ++vectorIndex )
100100
{
101101
// Whatever size we are, init everything.
102102
m_approachPositions[vectorIndex].zero();
@@ -118,7 +118,7 @@ Bool DockUpdate::isClearToApproach( Object const* docker ) const
118118

119119
ObjectID dockerID = docker->getID();
120120

121-
for( Int positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
121+
for( size_t positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
122122
{
123123
if( m_approachPositionOwners[positionIndex] == INVALID_ID )
124124
{
@@ -315,7 +315,7 @@ void DockUpdate::getExitPosition( Object* docker, Coord3D *position )
315315
void DockUpdate::onApproachReached( Object* docker )
316316
{
317317
ObjectID dockerID = docker->getID();
318-
for( Int positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
318+
for( size_t positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
319319
{
320320
if( m_approachPositionOwners[positionIndex] == dockerID )
321321
{
@@ -335,7 +335,7 @@ void DockUpdate::onEnterReached( Object* docker )
335335
m_dockerInside = TRUE;
336336

337337
ObjectID dockerID = docker->getID();
338-
for( Int positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
338+
for( size_t positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
339339
{
340340
if( m_approachPositionOwners[positionIndex] == dockerID )
341341
{
@@ -381,7 +381,7 @@ void DockUpdate::onExitReached( Object* docker )
381381
void DockUpdate::cancelDock( Object* docker )
382382
{
383383
ObjectID dockerID = docker->getID();
384-
for( Int positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
384+
for( size_t positionIndex = 0; positionIndex < m_approachPositionOwners.size(); ++positionIndex )
385385
{
386386
if( m_approachPositionOwners[positionIndex] == dockerID )
387387
{
@@ -418,7 +418,7 @@ UpdateSleepTime DockUpdate::update()
418418
if( m_activeDocker == INVALID_ID && !m_dockCrippled )
419419
{
420420
// if setDockCrippled has been called, I will never give enterance permission.
421-
for( Int positionIndex = 0; positionIndex < m_approachPositionReached.size(); ++positionIndex )
421+
for( size_t positionIndex = 0; positionIndex < m_approachPositionReached.size(); ++positionIndex )
422422
{
423423
if( m_approachPositionReached[positionIndex] )
424424
{

Generals/Code/GameEngine/Source/GameLogic/Object/Update/EMPUpdate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void EMPUpdate::doDisableAttack( void )
238238

239239
UnsignedInt emitterCount = MAX(15, REAL_TO_INT_CEIL(data->m_sparksPerCubicFoot * victimVolume));
240240

241-
for (Int e = 0 ; e < emitterCount; ++e)
241+
for (UnsignedInt e = 0 ; e < emitterCount; ++e)
242242
{
243243

244244
ParticleSystem *sys = TheParticleSystemManager->createParticleSystem(tmp);

Generals/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ void ParticleUplinkCannonUpdate::createOuterNodeParticleSystems( IntensityTypes
728728
if( tmp )
729729
{
730730
ParticleSystem *system;
731-
for( int i = 0; i < data->m_outerEffectNumBones; i++ )
731+
for( UnsignedInt i = 0; i < data->m_outerEffectNumBones; i++ )
732732
{
733733
system = TheParticleSystemManager->createParticleSystem( tmp );
734734
if( system )
@@ -773,7 +773,7 @@ void ParticleUplinkCannonUpdate::createConnectorLasers( IntensityTypes intensity
773773
const ThingTemplate *thingTemplate = TheThingFactory->findTemplate( str );
774774
if( thingTemplate )
775775
{
776-
for( int i = 0; i < data->m_outerEffectNumBones; i++ )
776+
for( UnsignedInt i = 0; i < data->m_outerEffectNumBones; i++ )
777777
{
778778
Drawable *beam = TheThingFactory->newDrawable( thingTemplate );
779779
if( beam )
@@ -950,7 +950,7 @@ void ParticleUplinkCannonUpdate::createGroundHitParticleSystem( IntensityTypes i
950950
void ParticleUplinkCannonUpdate::removeAllEffects()
951951
{
952952
const ParticleUplinkCannonUpdateModuleData *data = getParticleUplinkCannonUpdateModuleData();
953-
for( int i = 0; i < data->m_outerEffectNumBones; i++ )
953+
for( UnsignedInt i = 0; i < data->m_outerEffectNumBones; i++ )
954954
{
955955
if( m_outerSystemIDs && m_outerSystemIDs[ i ] )
956956
{
@@ -1003,7 +1003,7 @@ Bool ParticleUplinkCannonUpdate::calculateDefaultInformation()
10031003
return false;
10041004
}
10051005

1006-
for( int i = 0; i < data->m_outerEffectNumBones; i++ )
1006+
for( UnsignedInt i = 0; i < data->m_outerEffectNumBones; i++ )
10071007
{
10081008
m_laserBeamIDs[ i ] = INVALID_DRAWABLE_ID;
10091009
m_outerSystemIDs[ i ] = INVALID_PARTICLE_SYSTEM_ID;

0 commit comments

Comments
 (0)