Fix UB in remote input info (#1316)

Yes i should have made this first
no this wouldnt have happened with rust
This commit is contained in:
David Markowitz
2023-11-23 03:48:06 -08:00
committed by GitHub
parent 0217f88c44
commit fd20baaf09

View File

@@ -6,6 +6,13 @@
#include "eReplicaComponentType.h"
struct RemoteInputInfo {
RemoteInputInfo() {
m_RemoteInputX = 0;
m_RemoteInputY = 0;
m_IsPowersliding = false;
m_IsModified = false;
}
void operator=(const RemoteInputInfo& other) {
m_RemoteInputX = other.m_RemoteInputX;
m_RemoteInputY = other.m_RemoteInputY;