Skip to content

Commit

Permalink
Update src/event_object_movement.c
Browse files Browse the repository at this point in the history
Co-authored-by: GriffinR <griffin.g.richards@gmail.com>
  • Loading branch information
cawtds and GriffinRichards authored Aug 10, 2024
1 parent d612205 commit 466a69a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/event_object_movement.c
Original file line number Diff line number Diff line change
Expand Up @@ -2453,15 +2453,12 @@ u8 CameraObjectGetFollowedObjectId(void)

void CameraObjectReset2(void)
{
struct Sprite *cameraObject = FindCameraObject();
#ifdef UBFIX
struct Sprite* cameraObject = FindCameraObject();

if (cameraObject == NULL)
return;
cameraObject->data[1] = 2;
#else
FindCameraObject()->data[1] = 2;
#endif
cameraObject->data[1] = 2;
}

u8 CopySprite(struct Sprite *sprite, s16 x, s16 y, u8 subpriority)
Expand Down

0 comments on commit 466a69a

Please sign in to comment.