summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-06-30 21:50:40 +0200
committerHowaner <franzi.moos@googlemail.com>2014-06-30 21:50:40 +0200
commit8e11f7a1f64fd4d20495f1a4467ef168d18db92b (patch)
tree5a5de6613ff994015b0dfd03522d2a0323e92e15 /src/Bindings
parentAdd documentation. (diff)
downloadcuberite-8e11f7a1f64fd4d20495f1a4467ef168d18db92b.tar
cuberite-8e11f7a1f64fd4d20495f1a4467ef168d18db92b.tar.gz
cuberite-8e11f7a1f64fd4d20495f1a4467ef168d18db92b.tar.bz2
cuberite-8e11f7a1f64fd4d20495f1a4467ef168d18db92b.tar.lz
cuberite-8e11f7a1f64fd4d20495f1a4467ef168d18db92b.tar.xz
cuberite-8e11f7a1f64fd4d20495f1a4467ef168d18db92b.tar.zst
cuberite-8e11f7a1f64fd4d20495f1a4467ef168d18db92b.zip
Diffstat (limited to 'src/Bindings')
-rw-r--r--src/Bindings/PluginLua.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index be27340ad..2d485a117 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -722,7 +722,7 @@ bool cPluginLua::OnPlayerFoodLevelChange(cPlayer & a_Player, int & a_NewFoodLeve
cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PLAYER_FOOD_LEVEL_CHANGE];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), &a_Player, a_NewFoodLevel, cLuaState::Return, res);
+ m_LuaState.Call((int)(**itr), &a_Player, a_NewFoodLevel, cLuaState::Return, res, a_NewFoodLevel);
if (res)
{
return true;