mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix copying the wrong field.
This commit is contained in:
parent
453855993d
commit
5f6ae6ac8c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue