summaryrefslogtreecommitdiff
path: root/src/scripting/luautil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting/luautil.cpp')
-rw-r--r--src/scripting/luautil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp
index 3de23c77..f7b39e29 100644
--- a/src/scripting/luautil.cpp
+++ b/src/scripting/luautil.cpp
@@ -86,8 +86,8 @@ void UserDataCache::insert(lua_State *s, void *object)
// The metatable that makes the values in the table above weak
lua_newtable(s); // UD, Cache, {}
- lua_pushstring(s, "__mode");
- lua_pushstring(s, "v");
+ lua_pushliteral(s, "__mode");
+ lua_pushliteral(s, "v");
lua_rawset(s, -3); // UD, Cache, { __mode = "v" }
lua_setmetatable(s, -2); // UD, Cache