From 3ff57559e36d3254c64e334fbe3bdd47398fe16f Mon Sep 17 00:00:00 2001 From: x12xx12x <44411062+12xx12@users.noreply.github.com> Date: Thu, 2 Dec 2021 00:31:10 +0100 Subject: ItemHandler initialisation is a constant expression (#5344) * Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final --- src/Item.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Item.h') diff --git a/src/Item.h b/src/Item.h index 6d20da7cd..a3379ebdc 100644 --- a/src/Item.h +++ b/src/Item.h @@ -124,7 +124,7 @@ public: // tolua_end /** Returns the cItemHandler responsible for this item type */ - cItemHandler * GetHandler(void) const; + const cItemHandler & GetHandler(void) const; /** Saves the item data into JSON representation */ void GetJson(Json::Value & a_OutValue) const; -- cgit v1.2.3