Fix tostring;

This commit is contained in:
bjorn 2019-06-20 13:47:43 -07:00
parent d856f6d592
commit c10851d726
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
#include <stdbool.h>
static int luax_meta__tostring(lua_State* L) {
lua_getfield(L, -1, "name");
lua_getfield(L, -1, "__name");
lua_pushstring(L, (const char*) lua_touserdata(L, -1));
return 1;
}