MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setCurrent

Method setCurrent

Engine/source/console/arrayObject.cpp:558–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556//-----------------------------------------------------------------------------
557
558void ArrayObject::setCurrent( S32 idx )
559{
560 if ( idx < 0 || idx >= mArray.size() )
561 {
562 Con::errorf( "ArrayObject::setCurrent( %d ) is out of the array bounds!", idx );
563 return;
564 }
565
566 mCurrentIndex = idx;
567}
568
569//-----------------------------------------------------------------------------
570

Callers 1

arrayObject.cppFile · 0.80

Calls 2

errorfFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected