fixed a crashing bug (NULL strings) and change the viewing angle of default camera in the demo

This commit is contained in:
ejcoumans
2007-01-31 20:57:14 +00:00
parent e8ca371a71
commit 8a98639d78
2 changed files with 2 additions and 1 deletions

View File

@@ -947,7 +947,7 @@ void ColladaConverter::ConvertRigidBodyRef( btRigidBodyInput& rbInput,btRigidBod
{
daeElementRef elemRef = elemRefArray[u];
daeString elemName = elemRef->getElementName();
if (!strcmp(elemName,"kinematic"))
if (elemName && !strcmp(elemName,"kinematic"))
{
daeMemoryRef memRef = elemRef->getValuePointer();