Codechange: silence some potentially uninitialized local variable errors

In these cases technically they are false positives, however dismissing the
alerts when the underlying code may make them true positives does not seem
like the safest solution.
This commit is contained in:
Rubidium
2023-01-03 19:02:36 +01:00
committed by rubidium42
parent 496ec1f012
commit 170f37d07f
2 changed files with 2 additions and 2 deletions

View File

@@ -449,7 +449,7 @@ static bool IsValidSignalType(int signal_type)
EnforcePrecondition(false, ::IsValidSignalType(signal));
Track track = INVALID_TRACK;
uint signal_cycles;
uint signal_cycles = 0;
int data_index = 2 + (::TileX(front) - ::TileX(tile)) + 2 * (::TileY(front) - ::TileY(tile));
for (int i = 0; i < NUM_TRACK_DIRECTIONS; i++) {