Skip to content

Commit

Permalink
Fix UB in remote input info (#1316)
Browse files Browse the repository at this point in the history
Yes i should have made this first
no this wouldnt have happened with rust
  • Loading branch information
EmosewaMC authored Nov 23, 2023
1 parent 0217f88 commit fd20baa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dGame/dComponents/VehiclePhysicsComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd20baa

Please sign in to comment.