Implement helpful __tostring for all userdata-based classes
This commit is contained in:
committed by
Lars Müller
parent
9ad23e4384
commit
747857bffa
@@ -464,7 +464,7 @@ void LuaLocalPlayer::Register(lua_State *L)
|
||||
{"__gc", gc_object},
|
||||
{0, 0}
|
||||
};
|
||||
registerClass(L, className, methods, metamethods);
|
||||
registerClass<LuaLocalPlayer>(L, methods, metamethods);
|
||||
}
|
||||
|
||||
const char LuaLocalPlayer::className[] = "LocalPlayer";
|
||||
|
||||
Reference in New Issue
Block a user