mirror of https://github.com/bjornbytes/lovr.git
Fix tostring;
This commit is contained in:
parent
d856f6d592
commit
c10851d726
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue