1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Initialize variable (#15979)

Found it could be uninitialized in launchpad builds
This commit is contained in:
Michał Janiszewski
2021-11-23 17:31:09 +01:00
committed by GitHub
parent b86dfeca4e
commit 9a32dd90eb

View File

@@ -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;
}