From 5561bed2b962d9c4db808d80da2ad6c7d0dbb866 Mon Sep 17 00:00:00 2001 From: Cyberium Date: Wed, 6 Mar 2024 14:26:43 +0100 Subject: [PATCH] Unfortunate name for a variable, at least on macos --- playerbot/strategy/Action.cpp | 6 +++--- playerbot/strategy/Action.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playerbot/strategy/Action.cpp b/playerbot/strategy/Action.cpp index 07717b6b..b74c90ce 100644 --- a/playerbot/strategy/Action.cpp +++ b/playerbot/strategy/Action.cpp @@ -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; @@ -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