From f4a01f3a5dc0d8fe2f4f6d804d790da91d1bc30c Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Mon, 26 Sep 2022 17:03:43 -0400 Subject: Avoid duplication of mod metadata in memory (#12562) Co-authored-by: sfan5 --- src/script/lua_api/l_metadata.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/script/lua_api/l_metadata.h') diff --git a/src/script/lua_api/l_metadata.h b/src/script/lua_api/l_metadata.h index e655eb684..b61957642 100644 --- a/src/script/lua_api/l_metadata.h +++ b/src/script/lua_api/l_metadata.h @@ -23,7 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes_bloated.h" #include "lua_api/l_base.h" -class Metadata; +class IMetadata; /* NodeMetaRef @@ -38,11 +38,11 @@ protected: static MetaDataRef *checkobject(lua_State *L, int narg); virtual void reportMetadataChange(const std::string *name = nullptr) {} - virtual Metadata *getmeta(bool auto_create) = 0; + virtual IMetadata *getmeta(bool auto_create) = 0; virtual void clearMeta() = 0; - virtual void handleToTable(lua_State *L, Metadata *meta); - virtual bool handleFromTable(lua_State *L, int table, Metadata *meta); + virtual void handleToTable(lua_State *L, IMetadata *meta); + virtual bool handleFromTable(lua_State *L, int table, IMetadata *meta); // Exported functions -- cgit v1.2.3