mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Update simSet.cpp
This commit is contained in:
parent
0c94a71c66
commit
97e539db46
1 changed files with 2 additions and 2 deletions
|
|
@ -847,7 +847,7 @@ SimObject* SimGroup::getObject(const S32& index)
|
||||||
{
|
{
|
||||||
if (index < 0 || index >= size())
|
if (index < 0 || index >= size())
|
||||||
{
|
{
|
||||||
Con::errorf("Set::getObject - index out of range.");
|
Con::errorf("Set::getObject - index out of range [%d/%d].", index, this->size());
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1036,7 +1036,7 @@ DefineEngineMethod( SimSet, getObject, SimObject*, ( U32 index ),,
|
||||||
{
|
{
|
||||||
if( index < 0 || index >= object->size() )
|
if( index < 0 || index >= object->size() )
|
||||||
{
|
{
|
||||||
Con::errorf( "Set::getObject - index out of range." );
|
Con::errorf("Set::getObject - index out of range [%d/%d].", index, object->size());
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue