Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Squelch compiler warning with dummy initialisation.

  • Loading branch information...
commit 32a687fde8301b5f96c1cde767aa5038c42971d4 1 parent fb7245c
@Cyp Cyp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/action.cpp
View
2  src/action.cpp
@@ -730,7 +730,7 @@ static bool actionRemoveDroidsFromBuildPos(unsigned player, Vector2i pos, uint16
}
// TODO If the action code was less convoluted, it would be possible for the droid should drive away instead of just getting moved away.
- Vector2i bestDest;
+ Vector2i bestDest(0, 0); // Dummy initialisation.
unsigned bestDist = UINT32_MAX;
for (int y = -1; y <= size.y; ++y)
for (int x = -1; x <= size.x; x += y >= 0 && y < size.y? size.x + 1 : 1)
Please sign in to comment.
Something went wrong with that request. Please try again.