Fix potential crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
9afdcfaf50
commit
bf02f9b788
@ -1001,7 +1001,8 @@ void Track::createWater(const XMLNode &node)
|
|||||||
std::string full_path = m_root+"/"+model_name;
|
std::string full_path = m_root+"/"+model_name;
|
||||||
|
|
||||||
scene::IMesh *mesh = irr_driver->getMesh(full_path);
|
scene::IMesh *mesh = irr_driver->getMesh(full_path);
|
||||||
|
if (mesh == NULL) return;
|
||||||
|
|
||||||
float wave_height = 2.0f;
|
float wave_height = 2.0f;
|
||||||
float wave_speed = 300.0f;
|
float wave_speed = 300.0f;
|
||||||
float wave_length = 10.0f;
|
float wave_length = 10.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user