summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r--plugins/MirLua/src/mlua.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp
index 8a9b0ce87c..afa7d7b04c 100644
--- a/plugins/MirLua/src/mlua.cpp
+++ b/plugins/MirLua/src/mlua.cpp
@@ -61,7 +61,11 @@ void CMLua::Load()
lua_pushstring(L, "__mod");
lua_pushcfunction(L, luaM_interpolate);
lua_rawset(L, -3);
- lua_pop(L, 2);
+ lua_pushstring(L, "__index");
+ lua_rawget(L, -2);
+ lua_pushcfunction(L, luaM_interpolate);
+ lua_setfield(L, -2, "interpolate");
+ lua_pop(L, 3);
lua_atpanic(L, luaM_atpanic);