1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

GCC 13 fixes (#19519)

This addresses issues when compiling with GCC 13
This commit is contained in:
Michał Janiszewski
2023-02-28 20:04:52 +01:00
committed by GitHub
parent 38783c0c1d
commit 7459ba0efe
3 changed files with 4 additions and 3 deletions

View File

@@ -795,7 +795,7 @@ namespace OpenRCT2
// Awards
if (version <= 6)
{
Award awards[RCT2::Limits::MaxAwards];
Award awards[RCT2::Limits::MaxAwards]{};
cs.ReadWriteArray(awards, [&cs](Award& award) {
if (award.Time != 0)
{

View File

@@ -1,5 +1,6 @@
#pragma once
#include <cstdint>
#include <string_view>
#include <vector>

View File

@@ -5170,7 +5170,7 @@ void JuniorRCPaintTrack60DegUp(
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction], height,
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction & 3], height,
session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5262,7 +5262,7 @@ void JuniorRCPaintTrack25DegUpTo60DegUp(
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction], height,
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction & 3], height,
session.TrackColours[SCHEME_SUPPORTS]);
}