mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
Remove most usages of 'new Intent'
This commit is contained in:
committed by
Michael Steenbeek
parent
e3c0f6606d
commit
cc4f7e144a
@@ -1177,9 +1177,8 @@ static sint32 cc_load_object(const utf8 **argv, sint32 argc) {
|
||||
}
|
||||
scenery_set_default_placement_configuration();
|
||||
|
||||
Intent * intent = new Intent(INTENT_ACTION_REFRESH_NEW_RIDES);
|
||||
context_broadcast_intent(intent);
|
||||
delete intent;
|
||||
auto intent = Intent(INTENT_ACTION_REFRESH_NEW_RIDES);
|
||||
context_broadcast_intent(&intent);
|
||||
|
||||
gWindowUpdateTicks = 0;
|
||||
gfx_invalidate_screen();
|
||||
|
||||
Reference in New Issue
Block a user