Make Cullable::Deleter const.

This commit is contained in:
Sadie Powell 2024-09-13 15:40:43 +01:00
parent a6ea949d4d
commit bf53ff5084
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public:
/** Deleter that queues an object for deletion at the end of the current main loop iteration. */
struct Deleter final
{
void operator()(Cullable* item);
void operator()(Cullable* item) const;
};
/** Dummy class to help ensure all superclasses get culled. */

View File

@ -458,7 +458,7 @@ public:
void UpdateTime();
};
inline void Cullable::Deleter::operator()(Cullable* item)
inline void Cullable::Deleter::operator()(Cullable* item) const
{
if (item)
ServerInstance->GlobalCulls.AddItem(item);