1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Fix duck removal not invalidating screen

This commit is contained in:
Matt
2019-10-15 16:49:00 +02:00
parent 477347b6d4
commit 01ea0ae366

View File

@@ -96,6 +96,7 @@ void rct_duck::Invalidate()
void rct_duck::Remove()
{
Invalidate();
sprite_remove((rct_sprite*)this);
}
@@ -383,6 +384,7 @@ void duck_remove_all()
nextSpriteIndex = sprite->next;
if (sprite->type == SPRITE_MISC_DUCK)
{
invalidate_sprite_0((rct_sprite*)sprite);
sprite_remove((rct_sprite*)sprite);
}
}