Skip to content

Commit

Permalink
Unfortunate name for a variable, at least on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberium committed Mar 6, 2024
1 parent 5ccb9b3 commit 5561bed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions playerbot/strategy/Action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ NextAction** NextAction::merge(NextAction** left, NextAction** right)
}

//NextAction** NextAction::array(uint8 nil, ...)
NextAction** NextAction::array(uint32 nil, ...)
NextAction** NextAction::array(uint32 n, ...)
{
va_list vl;
va_start(vl, nil);
va_start(vl, n);

int size = 0;
NextAction* cur = NULL;
Expand All @@ -68,7 +68,7 @@ NextAction** NextAction::array(uint32 nil, ...)
va_end(vl);

NextAction** res = new NextAction*[size];
va_start(vl, nil);
va_start(vl, n);
for (int i=0; i<size; i++)
res[i] = va_arg(vl, NextAction*);
va_end(vl);
Expand Down
2 changes: 1 addition & 1 deletion playerbot/strategy/Action.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace ai
static int size(NextAction** actions);
static NextAction** clone(NextAction** actions);
static NextAction** merge(NextAction** what, NextAction** with);
static NextAction** array(uint32 nil,...);
static NextAction** array(uint32 n,...);
static void destroy(NextAction** actions);

private:
Expand Down

0 comments on commit 5561bed

Please sign in to comment.