From 5bf3513156890c1566247121afe431cf6c8a9dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 20 Oct 2021 01:10:25 +0300 Subject: [PATCH] Default initialize ErrorTitle and ErrorMessage with STR_NONE --- src/openrct2/actions/GameActionResult.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/actions/GameActionResult.h b/src/openrct2/actions/GameActionResult.h index d480dfe698..e50e756ba7 100644 --- a/src/openrct2/actions/GameActionResult.h +++ b/src/openrct2/actions/GameActionResult.h @@ -65,8 +65,8 @@ namespace GameActions using StringVariant = std::variant; GameActions::Status Error = GameActions::Status::Ok; - StringVariant ErrorTitle; - StringVariant ErrorMessage; + StringVariant ErrorTitle = STR_NONE; + StringVariant ErrorMessage = STR_NONE; std::array ErrorMessageArgs{}; CoordsXYZ Position = { LOCATION_NULL, LOCATION_NULL, LOCATION_NULL }; money32 Cost = 0;