Skip to content

Commit

Permalink
fixup! particles: Initialize frame_length_i
Browse files Browse the repository at this point in the history
  • Loading branch information
okias committed Feb 6, 2024
1 parent 39eceb2 commit 1b164f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodedef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ static void fillTileAttribs(ITextureSource *tsrc, TileLayer *layer,
int frame_count = 1;
if (layer->material_flags & MATERIAL_FLAG_ANIMATION) {
assert(layer->texture);
int frame_length_ms;
int frame_length_ms = 0;
tiledef.animation.determineParams(layer->texture->getOriginalSize(),
&frame_count, &frame_length_ms, NULL);
layer->animation_frame_count = frame_count;
Expand Down

0 comments on commit 1b164f7

Please sign in to comment.