mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +01:00
Eventually this can be fixed properly in the new save format
This commit is contained in:
@@ -1659,6 +1659,11 @@ private:
|
||||
{
|
||||
rct1_unk_sprite* src = &sprite.unknown;
|
||||
SpriteGeneric* dst = reinterpret_cast<SpriteGeneric*>(create_sprite(SPRITE_IDENTIFIER_MISC));
|
||||
if (dst == nullptr)
|
||||
{
|
||||
log_warning("SV4 has too many misc entities. No more misc entities will be imported!");
|
||||
break;
|
||||
}
|
||||
dst->sprite_identifier = src->sprite_identifier;
|
||||
dst->type = src->type;
|
||||
dst->flags = src->flags;
|
||||
|
||||
Reference in New Issue
Block a user