mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
* BugFix: Clear a lot of warnings and correct a few actual programming errors along the way.
This commit is contained in:
parent
ef514d0e6b
commit
1b6b803a20
61 changed files with 120 additions and 118 deletions
|
|
@ -74,7 +74,7 @@ TSShape::TSShape()
|
|||
mRadius = 0;
|
||||
mFlags = 0;
|
||||
tubeRadius = 0;
|
||||
data = NULL;
|
||||
data = 0;
|
||||
materialList = NULL;
|
||||
mReadVersion = -1; // -1 means constructed from scratch (e.g., in exporter or no read yet)
|
||||
mSequencesConstructed = false;
|
||||
|
|
@ -225,11 +225,7 @@ const String& TSShape::getTargetName( S32 mapToNameIndex ) const
|
|||
|
||||
S32 TSShape::getTargetCount() const
|
||||
{
|
||||
if(!this)
|
||||
return -1;
|
||||
|
||||
return materialList->getMaterialNameList().size();
|
||||
|
||||
}
|
||||
|
||||
S32 TSShape::findNode(S32 nameIndex) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue