Skip to content

Commit

Permalink
Fix uninit var.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Dec 8, 2024
1 parent d6fc46d commit 5489287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/media/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ void ctr_internal_media_render_image(MediaIMG* m, SDL_Rect r, SDL_Rect s, MediaI
}

void ctr_internal_media_image_calculate_motion(MediaIMG* m) {
MediaIMG* player;
MediaIMG* player = NULL;
// keep a constant physics speed by calculating the timediff
double delta_in_seconds = ((CtrMediaTicks2 - CtrMediaTicks1) / 1000.0f );
double dt = 60 * delta_in_seconds;
Expand Down

0 comments on commit 5489287

Please sign in to comment.