Avoid accessing NULL pointer (in case of an error).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
50e033f9f4
commit
b56ad00816
@ -541,8 +541,7 @@ void Track::convertTrackToBullet(scene::ISceneNode *node)
|
||||
if (node == NULL)
|
||||
{
|
||||
Log::warn("track",
|
||||
"This track contains an empty LOD group : '%s'\n",
|
||||
((LODNode*)node)->getGroupName().c_str());
|
||||
"This track contains an empty LOD group.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user