From 5f6ae6ac8c2776c374c944b20d4fcc39b1ce6bdd Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 2 Mar 2019 04:45:47 +0100 Subject: [PATCH] Fix copying the wrong field. --- src/openrct2/rct2/S6Exporter.cpp | 2 +- src/openrct2/rct2/S6Importer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/rct2/S6Exporter.cpp b/src/openrct2/rct2/S6Exporter.cpp index cb59affa99..0208cfd9b8 100644 --- a/src/openrct2/rct2/S6Exporter.cpp +++ b/src/openrct2/rct2/S6Exporter.cpp @@ -962,7 +962,7 @@ void S6Exporter::ExportSpritePeep(RCT2SpritePeep* dst, const rct_peep* src) auto srcThought = &src->thoughts[i]; auto dstThought = &dst->thoughts[i]; dstThought->type = (uint8_t)srcThought->type; - dstThought->item = srcThought->type; + dstThought->item = srcThought->item; dstThought->freshness = srcThought->freshness; dstThought->fresh_timeout = srcThought->fresh_timeout; } diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 44d5826a3d..cd142c1e5f 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -1226,7 +1226,7 @@ public: auto srcThought = &src->thoughts[i]; auto dstThought = &dst->thoughts[i]; dstThought->type = (PeepThoughtType)srcThought->type; - dstThought->item = srcThought->type; + dstThought->item = srcThought->item; dstThought->freshness = srcThought->freshness; dstThought->fresh_timeout = srcThought->fresh_timeout; }