Attempt to fix OSX build
This commit is contained in:
parent
edde246d64
commit
4f32cf52a6
@ -48,10 +48,10 @@ NextAction** NextAction::merge(NextAction** left, NextAction** right)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
NextAction** NextAction::array(uint8 nil, ...)
|
NextAction** NextAction::array(uint8 _nil, ...)
|
||||||
{
|
{
|
||||||
va_list vl;
|
va_list vl;
|
||||||
va_start(vl, nil);
|
va_start(vl, _nil);
|
||||||
|
|
||||||
int size = 0;
|
int size = 0;
|
||||||
NextAction* cur = NULL;
|
NextAction* cur = NULL;
|
||||||
@ -65,7 +65,7 @@ NextAction** NextAction::array(uint8 nil, ...)
|
|||||||
va_end(vl);
|
va_end(vl);
|
||||||
|
|
||||||
NextAction** res = new NextAction*[size];
|
NextAction** res = new NextAction*[size];
|
||||||
va_start(vl, nil);
|
va_start(vl, _nil);
|
||||||
for (int i=0; i<size; i++)
|
for (int i=0; i<size; i++)
|
||||||
res[i] = va_arg(vl, NextAction*);
|
res[i] = va_arg(vl, NextAction*);
|
||||||
va_end(vl);
|
va_end(vl);
|
||||||
|
@ -27,7 +27,7 @@ namespace ai
|
|||||||
static int size(NextAction** actions);
|
static int size(NextAction** actions);
|
||||||
static NextAction** clone(NextAction** actions);
|
static NextAction** clone(NextAction** actions);
|
||||||
static NextAction** merge(NextAction** what, NextAction** with);
|
static NextAction** merge(NextAction** what, NextAction** with);
|
||||||
static NextAction** array(uint8 nil,...);
|
static NextAction** array(uint8 _nil,...);
|
||||||
static void destroy(NextAction** actions);
|
static void destroy(NextAction** actions);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user