Build fix for MSVC2010

I think this is a compiler bug, because the standard specifies
std::list::insert to be not a template member, so it should never
accept int as value
stable-5.2
Nicolas Hake 2010-01-23 19:12:15 +01:00
parent af827da45d
commit 40babd09e3
1 changed files with 2 additions and 2 deletions

View File

@ -1636,14 +1636,14 @@ StdMeshInstance::AnimationNodeList::iterator StdMeshInstance::GetStackIterForSlo
if(!create)
return AnimationStack.end();
else
return AnimationStack.insert(iter, NULL);
return AnimationStack.insert(iter, static_cast<AnimationNode*>(NULL));
}
}
if(!create)
return AnimationStack.end();
else
return AnimationStack.insert(AnimationStack.end(), NULL);
return AnimationStack.insert(AnimationStack.end(), static_cast<AnimationNode*>(NULL));
}
bool StdMeshInstance::ExecuteAnimationNode(AnimationNode* node)