1
0

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
This commit is contained in:
faketruth
2012-10-11 20:49:18 +00:00
parent 3b125d47d1
commit 4eaafbd70f
3 changed files with 29 additions and 12 deletions

View File

@@ -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;
}