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:
hikerstk 2013-02-18 21:04:27 +00:00
parent 50e033f9f4
commit b56ad00816

View File

@ -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;
}
}