aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/main.cpp')
-rw-r--r--src/libui_sdl/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp
index 6cdfe7a..84bbb94 100644
--- a/src/libui_sdl/main.cpp
+++ b/src/libui_sdl/main.cpp
@@ -318,6 +318,7 @@ void FeedMicInput()
{
int type = Config::MicInputType;
if ((type != 1 && MicCommand == 0) ||
+ (type == 1 && MicBufferLength == 0) ||
(type == 3 && MicWavBuffer == NULL))
{
type = 0;