summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-30 22:41:47 +0200
committermadmaxoft <github@xoft.cz>2014-05-30 22:42:00 +0200
commitb9d306a801af7de6c620740d5f8c827c7df29dce (patch)
tree2be7f678336a0a68d2b3b12ff25a2a46441d1299 /src
parentCmake system name not System name (diff)
downloadcuberite-b9d306a801af7de6c620740d5f8c827c7df29dce.tar
cuberite-b9d306a801af7de6c620740d5f8c827c7df29dce.tar.gz
cuberite-b9d306a801af7de6c620740d5f8c827c7df29dce.tar.bz2
cuberite-b9d306a801af7de6c620740d5f8c827c7df29dce.tar.lz
cuberite-b9d306a801af7de6c620740d5f8c827c7df29dce.tar.xz
cuberite-b9d306a801af7de6c620740d5f8c827c7df29dce.tar.zst
cuberite-b9d306a801af7de6c620740d5f8c827c7df29dce.zip
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/ManualBindings.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index 10e560ac0..14d9d16fc 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -2864,8 +2864,8 @@ static int tolua_cCompositeChat_SetMessageType(lua_State * tolua_S)
}
// Set the type:
- int MessageType;
- L.GetStackValue(1, MessageType);
+ int MessageType = mtCustom;
+ L.GetStackValue(2, MessageType);
self->SetMessageType((eMessageType)MessageType);
// Cut away everything from the stack except for the cCompositeChat instance; return that: