Skip to content

Commit

Permalink
particles: Initialize frame_length_i
Browse files Browse the repository at this point in the history
Signed-off-by: David Heidelberg <david@ixit.cz>
  • Loading branch information
okias committed Jan 28, 2024
1 parent 9a68bb6 commit b92f951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/particles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void Particle::step(float dtime)

if (m_p.animation.type != TAT_NONE) {
m_animation_time += dtime;
int frame_length_i;
int frame_length_i = 0;
m_p.animation.determineParams(
m_material.getTexture(0)->getSize(),
NULL, &frame_length_i, NULL);
Expand Down

0 comments on commit b92f951

Please sign in to comment.