mirror of https://github.com/axmolengine/axmol.git
remove unused code, and use nullptr for pointer
This commit is contained in:
parent
76baa96e97
commit
4d1aa56193
|
@ -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;
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
NS_CC_BEGIN
|
||||
|
||||
LinearAllocator::LinearAllocator(const int cap)
|
||||
: buffer(0)
|
||||
: buffer(nullptr)
|
||||
, capacity(0)
|
||||
, top(0)
|
||||
, high(0)
|
||||
|
|
Loading…
Reference in New Issue