mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
Refactor access to g_sprite_list
Hide g_sprite_list behind accessor function with a check. `assert` is temporarily disabled, as it breaks nearly every park.
This commit is contained in:
@@ -1294,7 +1294,7 @@ void window_scroll_to_viewport(rct_window *w)
|
||||
return;
|
||||
|
||||
if (w->viewport_focus_sprite.type & VIEWPORT_FOCUS_TYPE_SPRITE) {
|
||||
rct_sprite *sprite = &(g_sprite_list[w->viewport_focus_sprite.sprite_id]);
|
||||
rct_sprite *sprite = get_sprite(w->viewport_focus_sprite.sprite_id);
|
||||
x = sprite->unknown.x;
|
||||
y = sprite->unknown.y;
|
||||
z = sprite->unknown.z;
|
||||
|
||||
Reference in New Issue
Block a user