fix(Core/Travel): Override LastMovementValue Reset/Set to bypass deleted operator=

This commit is contained in:
bash 2026-05-10 03:15:31 +02:00
parent 753248510a
commit c64ac89924

View File

@ -65,6 +65,11 @@ class LastMovementValue : public ManualSetValue<LastMovement&>
public:
LastMovementValue(PlayerbotAI* botAI) : ManualSetValue<LastMovement&>(botAI, data) {}
// LastMovement is non-copyable; the base Reset/Set rely on
// operator= which we deleted. Override both to do the right thing.
void Reset() override { data.clear(); }
void Set(LastMovement& /*val*/) override {}
private:
LastMovement data{};
};