From bfdf348a6c03aa7b5423c99ede1b694e47d7c966 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 9 Dec 2017 18:01:15 +0800 Subject: [PATCH] [Server] Fix Undefined behavior --- apps/openmw-mp/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw-mp/Window.cpp b/apps/openmw-mp/Window.cpp index 2fd419b2e..1048d306c 100644 --- a/apps/openmw-mp/Window.cpp +++ b/apps/openmw-mp/Window.cpp @@ -67,7 +67,6 @@ void Window::call(const BasePlayer::GUIWindow &window) auto fnTypeToStr = [](const BasePlayer::GUIWindow::WidgetType &type) { switch (type) { - case BasePlayer::GUIWindow::WidgetType::Button: return "Button"; case BasePlayer::GUIWindow::WidgetType::Editbox: @@ -81,6 +80,7 @@ void Window::call(const BasePlayer::GUIWindow &window) case BasePlayer::GUIWindow::WidgetType::Slider: return "Slider"; } + return "Unknown"; }; for (const auto &widget : window.widgets)