diff --git a/source/core/mainloop.cpp b/source/core/mainloop.cpp index 0626b3f72..4687f21ea 100644 --- a/source/core/mainloop.cpp +++ b/source/core/mainloop.cpp @@ -117,7 +117,8 @@ void DoLoadGame(const char* name); void G_BuildTiccmd(ticcmd_t* cmd) { I_GetEvent(); - gi->GetInput(&cmd->ucmd, &CONTROL_GetInput()); + auto input = CONTROL_GetInput(); + gi->GetInput(&cmd->ucmd, &input); cmd->consistency = consistency[myconnectindex][(maketic / ticdup) % BACKUPTICS]; } @@ -511,7 +512,8 @@ void TryRunTics (void) if (!cl_syncinput) { I_GetEvent(); - gi->GetInput(nullptr, &CONTROL_GetInput()); + auto input = CONTROL_GetInput(); + gi->GetInput(nullptr, &input); } return; }