Fix UB in remote input info

Yes i should have made this first
no this wouldnt have happened with rust
This commit is contained in:
David Markowitz 2023-11-22 23:49:40 -08:00
parent 198b3371c5
commit 90abd3e81a

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;