mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Fix copying the wrong field.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user