mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 16:06:44 +00:00
[Server] Fix Undefined behavior
This commit is contained in:
parent
f11473da87
commit
bfdf348a6c
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,6 @@ void Window::call(const BasePlayer::GUIWindow &window)
|
||||||
auto fnTypeToStr = [](const BasePlayer::GUIWindow::WidgetType &type) {
|
auto fnTypeToStr = [](const BasePlayer::GUIWindow::WidgetType &type) {
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
|
||||||
case BasePlayer::GUIWindow::WidgetType::Button:
|
case BasePlayer::GUIWindow::WidgetType::Button:
|
||||||
return "Button";
|
return "Button";
|
||||||
case BasePlayer::GUIWindow::WidgetType::Editbox:
|
case BasePlayer::GUIWindow::WidgetType::Editbox:
|
||||||
|
@ -81,6 +80,7 @@ void Window::call(const BasePlayer::GUIWindow &window)
|
||||||
case BasePlayer::GUIWindow::WidgetType::Slider:
|
case BasePlayer::GUIWindow::WidgetType::Slider:
|
||||||
return "Slider";
|
return "Slider";
|
||||||
}
|
}
|
||||||
|
return "Unknown";
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const auto &widget : window.widgets)
|
for (const auto &widget : window.widgets)
|
||||||
|
|
Loading…
Reference in a new issue