- fixed "pointers to temporary" errors reported by XCode

This commit is contained in:
Christoph Oelckers 2020-09-15 21:45:54 +02:00
parent e7ddc4178a
commit 8babdd6296

View file

@ -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;
}