Fixed memory corruption on cleanup when water nodes were used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8474 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
4b39b151cc
commit
b134eca433
@ -939,7 +939,7 @@ void Track::createWater(const XMLNode &node)
|
||||
std::string debug_name = model_name+"(water node)";
|
||||
scene_node->setName(debug_name.c_str());
|
||||
#endif
|
||||
mesh->drop();
|
||||
mesh->grab();
|
||||
m_all_cached_meshes.push_back(mesh);
|
||||
|
||||
core::vector3df xyz(0,0,0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user