remove unused code, and use nullptr for pointer

This commit is contained in:
yangxiao 2015-06-16 11:15:39 +08:00
parent 76baa96e97
commit 4d1aa56193
2 changed files with 1 additions and 2 deletions

View File

@ -485,7 +485,6 @@ void cocos2d::NavMesh::findPath(const Vec3 &start, const Vec3 &end, std::vector<
{
static const int MAX_POLYS = 256;
static const int MAX_SMOOTH = 2048;
int pathIterNum = 0;
float ext[3];
ext[0] = 2; ext[1] = 4; ext[2] = 2;
dtQueryFilter filter;

View File

@ -31,7 +31,7 @@
NS_CC_BEGIN
LinearAllocator::LinearAllocator(const int cap)
: buffer(0)
: buffer(nullptr)
, capacity(0)
, top(0)
, high(0)