This commit is contained in:
Henrique 2011-05-31 02:25:57 -03:00
commit 9058a2898d
1 changed files with 2 additions and 0 deletions

View File

@ -31,7 +31,9 @@ class Scriptable : public boost::enable_shared_from_this<Scriptable>
{
public:
Scriptable() : m_luaTableRef(-1) { }
virtual ~Scriptable() { releaseLuaTableRef(); }
//TODO: global destroy
virtual const char *getScriptableName() const { return NULL; }
int getLuaTableRef();