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:
auria 2011-11-27 02:40:46 +00:00
parent 9afdcfaf50
commit bf02f9b788

View File

@ -1001,7 +1001,8 @@ void Track::createWater(const XMLNode &node)
std::string full_path = m_root+"/"+model_name;
scene::IMesh *mesh = irr_driver->getMesh(full_path);
if (mesh == NULL) return;
float wave_height = 2.0f;
float wave_speed = 300.0f;
float wave_length = 10.0f;