We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea554d0 + 785872d commit 848db69Copy full SHA for 848db69
1 file changed
Engine/source/T3D/prefab.cpp
@@ -460,6 +460,8 @@ void Prefab::_onFileChanged( const Torque::Path &path )
460
461
Prefab* Prefab::getPrefabByChild( SimObject *child )
462
{
463
+ if (child == NULL) return NULL;
464
+
465
ChildToPrefabMap::Iterator itr = smChildToPrefabMap.find( child->getId() );
466
if ( itr == smChildToPrefabMap.end() )
467
return NULL;
0 commit comments