Fix a warning reported by clang
minetest/src/script/cpp_api/s_player.h:27:1: warning: struct 'PlayerHPChangeReason' was previously declared as a class [-Wmismatched-tags] struct PlayerHPChangeReason;master
parent
83fc0fd2f1
commit
ef979ee2e9
|
@ -72,7 +72,7 @@ class IGameDef;
|
||||||
class Environment;
|
class Environment;
|
||||||
class GUIEngine;
|
class GUIEngine;
|
||||||
class ServerActiveObject;
|
class ServerActiveObject;
|
||||||
class PlayerHPChangeReason;
|
struct PlayerHPChangeReason;
|
||||||
|
|
||||||
class ScriptApiBase {
|
class ScriptApiBase {
|
||||||
public:
|
public:
|
||||||
|
@ -146,7 +146,7 @@ protected:
|
||||||
std::string m_last_run_mod;
|
std::string m_last_run_mod;
|
||||||
bool m_secure = false;
|
bool m_secure = false;
|
||||||
#ifdef SCRIPTAPI_LOCK_DEBUG
|
#ifdef SCRIPTAPI_LOCK_DEBUG
|
||||||
int m_lock_recursion_count;
|
int m_lock_recursion_count{};
|
||||||
std::thread::id m_owning_thread;
|
std::thread::id m_owning_thread;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue