diff --git a/src/win32/Joypad.cpp b/src/win32/Joypad.cpp index 9d15f694..36f9a7c5 100644 --- a/src/win32/Joypad.cpp +++ b/src/win32/Joypad.cpp @@ -35,6 +35,9 @@ static char THIS_FILE[] = __FILE__; int TempReadFirst(KeyList &Key) { + if (Key.IsEmpty()) + return 0; + return Key.GetHead(); }