aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2018-12-21 19:05:29 +0100
committerSmallJoker <mk939@ymail.com>2018-12-21 19:05:29 +0100
commit2a69f874da804570b589da25c9ae1783b9c05a8c (patch)
treeb8a01f2b82290e388443a999f6c1419db0a9af39 /src/script/lua_api
parentd994f7ca5f75431da8e17fd6762209c404d89482 (diff)
downloadminetest-2a69f874da804570b589da25c9ae1783b9c05a8c.tar.gz
minetest-2a69f874da804570b589da25c9ae1783b9c05a8c.tar.bz2
minetest-2a69f874da804570b589da25c9ae1783b9c05a8c.zip
reportMetadataChange; Silence clang warnings
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_playermeta.cpp2
-rw-r--r--src/script/lua_api/l_playermeta.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_playermeta.cpp b/src/script/lua_api/l_playermeta.cpp
index e690f6bd0..558672e38 100644
--- a/src/script/lua_api/l_playermeta.cpp
+++ b/src/script/lua_api/l_playermeta.cpp
@@ -45,7 +45,7 @@ void PlayerMetaRef::clearMeta()
metadata->clear();
}
-void PlayerMetaRef::reportMetadataChange()
+void PlayerMetaRef::reportMetadataChange(const std::string *name)
{
// TODO
}
diff --git a/src/script/lua_api/l_playermeta.h b/src/script/lua_api/l_playermeta.h
index 697424318..9e23c071c 100644
--- a/src/script/lua_api/l_playermeta.h
+++ b/src/script/lua_api/l_playermeta.h
@@ -40,7 +40,7 @@ private:
virtual void clearMeta();
- virtual void reportMetadataChange();
+ virtual void reportMetadataChange(const std::string *name = nullptr);
// garbage collector
static int gc_object(lua_State *L);