[Add] Missing scNew in Pathfinding.h
This commit is contained in:
parent
30dfb9dba0
commit
cb4774bd1f
@ -7,6 +7,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
#include "../Engine/MemManager.h"
|
||||||
|
|
||||||
// Disable warning that debugging information has lines that are truncated.
|
// Disable warning that debugging information has lines that are truncated.
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#pragma warning(disable : 4786)
|
#pragma warning(disable : 4786)
|
||||||
@ -468,7 +470,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Node* AllocateNode(UserState& userState) {
|
Node* AllocateNode(UserState& userState) {
|
||||||
Node *p = new Node(userState);
|
Node *p = scNew(Node,(userState));
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user