mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
Provide default values for various scalar fields
This commit is contained in:
@@ -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<GAME_COMMAND_CREATE_RIDE, RideCreateGameActionResult>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user