mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-04-27 09:06:31 +00:00
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:
parent
0217f88c44
commit
fd20baaf09
@ -6,6 +6,13 @@
|
|||||||
#include "eReplicaComponentType.h"
|
#include "eReplicaComponentType.h"
|
||||||
|
|
||||||
struct RemoteInputInfo {
|
struct RemoteInputInfo {
|
||||||
|
RemoteInputInfo() {
|
||||||
|
m_RemoteInputX = 0;
|
||||||
|
m_RemoteInputY = 0;
|
||||||
|
m_IsPowersliding = false;
|
||||||
|
m_IsModified = false;
|
||||||
|
}
|
||||||
|
|
||||||
void operator=(const RemoteInputInfo& other) {
|
void operator=(const RemoteInputInfo& other) {
|
||||||
m_RemoteInputX = other.m_RemoteInputX;
|
m_RemoteInputX = other.m_RemoteInputX;
|
||||||
m_RemoteInputY = other.m_RemoteInputY;
|
m_RemoteInputY = other.m_RemoteInputY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user