From 9a32dd90eb3097df554bff63c62d9db2ff5ecb6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 23 Nov 2021 17:31:09 +0100 Subject: [PATCH] Initialize variable (#15979) Found it could be uninitialized in launchpad builds --- src/openrct2/ParkFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/ParkFile.cpp b/src/openrct2/ParkFile.cpp index 5529f05915..c5bc7a60c0 100644 --- a/src/openrct2/ParkFile.cpp +++ b/src/openrct2/ParkFile.cpp @@ -1931,7 +1931,7 @@ namespace OpenRCT2 cs.ReadWrite(thought.type); if (version <= 2) { - int16_t item; + int16_t item{}; cs.ReadWrite(item); thought.item = item; }