Compile bug fixes.

This commit is contained in:
whipowill
2022-05-18 15:29:30 -05:00
parent bd2714535a
commit 972735747d
5 changed files with 5 additions and 5 deletions

View File

@@ -346,7 +346,7 @@ inline ByteBuffer& operator<<(ByteBuffer& b, WorldPosition& guidP)
return b;
}
inline ByteBuffer& operator>>(ByteBuffer& b) // additional argument "WorldPosition& g" was unused - whipowill
inline ByteBuffer& operator>>(ByteBuffer& b, [[maybe_unused]] WorldPosition& g) // unused param - whipowill
{
uint32 mapid;
float coord_x;

View File

@@ -71,7 +71,7 @@ class ActionNode
{
public:
ActionNode(std::string const name, NextAction** prerequisites = nullptr, NextAction** alternatives = nullptr, NextAction** continuers = nullptr) :
name(name), action(nullptr), alternatives(alternatives), prerequisites(prerequisites), continuers(continuers) { } // action after name, prereq after alternatives - whipowill
name(name), action(nullptr), alternatives(alternatives), continuers(continuers), prerequisites(prerequisites) { } // reorder arguments - whipowill
virtual ~ActionNode()
{

View File

@@ -16,7 +16,7 @@ class Multiplier : public AiNamedObject
Multiplier(PlayerbotAI* botAI, std::string const name) : AiNamedObject(botAI, name) {}
virtual ~Multiplier() { }
virtual float GetValue(Action* action) { return 1.0f; }
virtual float GetValue([[maybe_unused]] Action* action) { return 1.0f; } // unused param - whipowill
};
#endif

View File

@@ -39,7 +39,7 @@ class Trigger : public AiNamedObject
class TriggerNode
{
public:
TriggerNode(std::string const name, NextAction** handlers = nullptr) : name(name), trigger(nullptr), handlers(handlers) { } // name after handlers, handlers after trigger - whipowill
TriggerNode(std::string const name, NextAction** handlers = nullptr) : trigger(nullptr), name(name), handlers(handlers) { } // reorder args - whipowill
virtual ~TriggerNode()
{

View File

@@ -135,7 +135,7 @@ class MemoryCalculatedValue : public CalculatedValue<T>
return true;
}
void Set(T value) override
void Set([[maybe_unused]] T value) override // unused param - whipowill
{
CalculatedValue<T>::Set(this->value);
UpdateChange();