summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol15x.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-06 22:22:33 +0100
committermadmaxoft <github@xoft.cz>2014-01-06 22:22:33 +0100
commit9c8af58b7546448e9168ca6d70b5ba9a7f4330d7 (patch)
tree6c387a2d177f6ee3a22038ba760f6a4e4390332b /src/Protocol/Protocol15x.cpp
parentMerge pull request #511 from mc-server/CmakeOutput (diff)
downloadcuberite-9c8af58b7546448e9168ca6d70b5ba9a7f4330d7.tar
cuberite-9c8af58b7546448e9168ca6d70b5ba9a7f4330d7.tar.gz
cuberite-9c8af58b7546448e9168ca6d70b5ba9a7f4330d7.tar.bz2
cuberite-9c8af58b7546448e9168ca6d70b5ba9a7f4330d7.tar.lz
cuberite-9c8af58b7546448e9168ca6d70b5ba9a7f4330d7.tar.xz
cuberite-9c8af58b7546448e9168ca6d70b5ba9a7f4330d7.tar.zst
cuberite-9c8af58b7546448e9168ca6d70b5ba9a7f4330d7.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol15x.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol15x.cpp b/src/Protocol/Protocol15x.cpp
index 7e2aa9490..0f1e59f10 100644
--- a/src/Protocol/Protocol15x.cpp
+++ b/src/Protocol/Protocol15x.cpp
@@ -112,7 +112,7 @@ int cProtocol150::ParseWindowClick(void)
}
// Convert Button, Mode, SlotNum and HeldItem into eClickAction:
- eClickAction Action;
+ eClickAction Action = caUnknown;
switch ((Mode << 8) | Button)
{
case 0x0000: Action = (SlotNum != -999) ? caLeftClick : caLeftClickOutside; break;