From 604c8fd9b9be46460c18e347bc4e7c0e6bc83761 Mon Sep 17 00:00:00 2001 From: worktycho Date: Mon, 9 Dec 2013 14:17:39 +0000 Subject: Fix Undefined behavior at Bindings/LuaWindow line 32 --- src/Bindings/LuaWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Bindings/LuaWindow.cpp b/src/Bindings/LuaWindow.cpp index 18d8b4467..733304eb2 100644 --- a/src/Bindings/LuaWindow.cpp +++ b/src/Bindings/LuaWindow.cpp @@ -1,4 +1,3 @@ - // LuaWindow.cpp // Implements the cLuaWindow class representing a virtual window that plugins may create and open for the player @@ -37,6 +36,10 @@ cLuaWindow::cLuaWindow(cWindow::WindowType a_WindowType, int a_SlotsX, int a_Slo m_SlotAreas.push_back(new cSlotAreaArmor(*this)); break; } + default: + { + break; + } } m_SlotAreas.push_back(new cSlotAreaInventory(*this)); m_SlotAreas.push_back(new cSlotAreaHotBar(*this)); -- cgit v1.2.3