From b56ad008161e75a2c3fb21a77d7b68f29316a62c Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 18 Feb 2013 21:04:27 +0000 Subject: [PATCH] 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 --- src/tracks/track.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index ecd987e64..e9effa1eb 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -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; } }