Skip to content

Commit

Permalink
fix(tools): initialize variable only once
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrechette committed Oct 26, 2023
1 parent b9620f0 commit 759d401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/acl_compressor/sources/validate_tracks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void RTM_SIMD_CALL validate_scalar_tracks(const track_array& raw_tracks, const a
if (output_index == k_invalid_track_index)
continue; // Track is being stripped, ignore it

rtm::vector4f error = zero;
rtm::vector4f error;

switch (reference.type)
{
Expand Down Expand Up @@ -315,6 +315,7 @@ void RTM_SIMD_CALL validate_scalar_tracks(const track_array& raw_tracks, const a
case track_type8::qvvf:
default:
ACL_ASSERT(false, "Unsupported track type");
error = zero;
break;
}

Expand Down

0 comments on commit 759d401

Please sign in to comment.