Use defines here instead

I got a "initializer element is not constant" error when compiling. From a quick Google search, it seems that const-type variables aren't totally considered constants in C. There may be a better way to fix this error.
This commit is contained in:
TehRealSalt 2019-09-25 07:17:14 -04:00
parent 0f7a704444
commit bca4f30ee3

View file

@ -11,9 +11,9 @@ static const UINT32 SPARKLES_PER_CONNECTION = 16U;
// Some defaults for the size of the dynamically allocated sets for pathfinding. These are kept for the purpose of
// allocating a size that is less likely to need reallocating again during the pathfinding.
static const size_t OPENSET_BASE_SIZE = 16U;
static const size_t CLOSEDSET_BASE_SIZE = 256U;
static const size_t NODESARRAY_BASE_SIZE = 256U;
#define OPENSET_BASE_SIZE 16U;
#define CLOSEDSET_BASE_SIZE 256U;
#define NODESARRAY_BASE_SIZE 256U;
static waypoint_t *waypointheap = NULL;
static waypoint_t *firstwaypoint = NULL;