From 4eaafbd70f204d620d9211a672d28ec618c01d39 Mon Sep 17 00:00:00 2001 From: faketruth Date: Thu, 11 Oct 2012 20:49:18 +0000 Subject: Got rid of "self" in plugins, which is deprecated anyway Fixed bug in many On* hooks that did not pop the return values from the stack Fixed Plugin:Call() that removed one too many items from the stack git-svn-id: http://mc-server.googlecode.com/svn/trunk@950 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ManualBindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/ManualBindings.cpp') diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp index 9ddd1360e..dca4e0083 100644 --- a/source/ManualBindings.cpp +++ b/source/ManualBindings.cpp @@ -808,7 +808,7 @@ static int tolua_cPlugin_Call(lua_State* tolua_S) return 0; } - lua_pop(targetState, nresults+1); // I have no idea what I'm doing, but it works + lua_pop(targetState, nresults); // I have no idea what I'm doing, but it works return nresults; } -- cgit v1.2.3