mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
fix script leak
This commit is contained in:
@@ -31,7 +31,9 @@ class Scriptable : public boost::enable_shared_from_this<Scriptable>
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Scriptable() : m_luaTableRef(-1) { }
|
Scriptable() : m_luaTableRef(-1) { }
|
||||||
|
virtual ~Scriptable() { releaseLuaTableRef(); }
|
||||||
|
|
||||||
|
//TODO: global destroy
|
||||||
virtual const char *getScriptableName() const { return NULL; }
|
virtual const char *getScriptableName() const { return NULL; }
|
||||||
|
|
||||||
int getLuaTableRef();
|
int getLuaTableRef();
|
||||||
|
Reference in New Issue
Block a user