From 591d997670cca9defe94f5d8f35e35df628752d0 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Fri, 27 Mar 2009 12:34:52 +0000 Subject: [PATCH] Bugfix: beach track would crash. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3307 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/graphics/irr_driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index 5a8425e27..53d8c99d1 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -83,7 +83,7 @@ IrrDriver::~IrrDriver() scene::IAnimatedMesh *IrrDriver::getAnimatedMesh(const std::string &filename) { scene::IAnimatedMesh *m = m_scene_manager->getMesh(filename.c_str()); - setAllMaterialFlags(m); + if(m) setAllMaterialFlags(m); return m; } // getAnimatedMesh