mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Remove AsPeep
This commit is contained in:
@@ -745,7 +745,7 @@ void sprite_set_coordinates(int16_t x, int16_t y, int16_t z, SpriteBase* sprite)
|
||||
*/
|
||||
void sprite_remove(SpriteBase* sprite)
|
||||
{
|
||||
auto peep = (reinterpret_cast<rct_sprite*>(sprite))->AsPeep();
|
||||
auto peep = sprite->As<Peep>();
|
||||
if (peep != nullptr)
|
||||
{
|
||||
peep->SetName({});
|
||||
|
||||
Reference in New Issue
Block a user