diff --git a/src/openrct2/actions/RideCreateAction.hpp b/src/openrct2/actions/RideCreateAction.hpp index 7aeabd7727..aae4a54dfb 100644 --- a/src/openrct2/actions/RideCreateAction.hpp +++ b/src/openrct2/actions/RideCreateAction.hpp @@ -38,7 +38,7 @@ struct RideCreateGameActionResult : public GameActionResult RideCreateGameActionResult() : GameActionResult(GA_ERROR::OK, 0) {} RideCreateGameActionResult(GA_ERROR error, rct_string_id message) : GameActionResult(error, message) {} - sint32 rideIndex; + sint32 rideIndex = -1; }; struct RideCreateAction : public GameActionBase diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index a301469723..5424ab2934 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -214,12 +214,12 @@ private: { } - uint32 tick; - uint32 eax, ebx, ecx, edx, esi, edi, ebp; + uint32 tick = 0; + uint32 eax = 0, ebx = 0, ecx = 0, edx = 0, esi = 0, edi = 0, ebp = 0; GameAction::Ptr action; - uint8 playerid; - uint8 callback; - uint32 commandIndex; + uint8 playerid = 0; + uint8 callback = 0; + uint32 commandIndex = 0; bool operator<(const GameCommand& comp) const { return tick < comp.tick && commandIndex < comp.commandIndex; }