diff --git a/source/core/mainloop.cpp b/source/core/mainloop.cpp index 87868ebe8..286f016cb 100644 --- a/source/core/mainloop.cpp +++ b/source/core/mainloop.cpp @@ -118,6 +118,7 @@ void DoLoadGame(const char* name); void G_BuildTiccmd(ticcmd_t* cmd) { + cmd->ucmd = {}; I_GetEvent(); auto input = CONTROL_GetInput(); gi->GetInput(&cmd->ucmd, &input);