From fbc689818e6b8e2e306a50a2d237b822a75a4b08 Mon Sep 17 00:00:00 2001 From: ZehMatt Date: Fri, 30 Jul 2021 02:24:35 +0300 Subject: [PATCH] Default initialize ErrorMessageArgs in GameAction Result --- src/openrct2/actions/GameAction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/actions/GameAction.h b/src/openrct2/actions/GameAction.h index 04ac4b2b36..856470f356 100644 --- a/src/openrct2/actions/GameAction.h +++ b/src/openrct2/actions/GameAction.h @@ -126,7 +126,7 @@ namespace GameActions GameActions::Status Error = GameActions::Status::Ok; StringVariant ErrorTitle; StringVariant ErrorMessage; - std::array ErrorMessageArgs; + std::array ErrorMessageArgs{}; CoordsXYZ Position = { LOCATION_NULL, LOCATION_NULL, LOCATION_NULL }; money32 Cost = 0; ExpenditureType Expenditure = ExpenditureType::Count;