Commit 97b683c2 authored by hybrid's avatar hybrid

Fixed compile bug in FollowSpline Animator. Fixed memory leak in .x loader.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1006 dfc29bdd-3216-0410-991c-e03cc46cb475
parent d7ac9ad1
...@@ -66,7 +66,7 @@ void CSceneNodeAnimatorFollowSpline::serializeAttributes(io::IAttributes* out, i ...@@ -66,7 +66,7 @@ void CSceneNodeAnimatorFollowSpline::serializeAttributes(io::IAttributes* out, i
out->addFloat("Speed", Speed); out->addFloat("Speed", Speed);
out->addFloat("Tightness", Tightness); out->addFloat("Tightness", Tightness);
const u32 count = Points.size(); u32 count = Points.size();
if ( options && (options->Flags & io::EARWF_FOR_EDITOR)) if ( options && (options->Flags & io::EARWF_FOR_EDITOR))
{ {
......
...@@ -84,7 +84,7 @@ IAnimatedMesh* CXMeshFileLoader::createMesh(io::IReadFile* f) ...@@ -84,7 +84,7 @@ IAnimatedMesh* CXMeshFileLoader::createMesh(io::IReadFile* f)
CurFrame=0; CurFrame=0;
TemplateMaterials.clear(); TemplateMaterials.clear();
delete Buffer; delete [] Buffer;
Buffer = 0; Buffer = 0;
for (u32 i=0; i<Meshes.size(); ++i) for (u32 i=0; i<Meshes.size(); ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment